/* ============================================================
   REGISTER PAGE - SAMA PERSIS DENGAN LOGIN
   ============================================================ */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #F5F8F5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1.5rem;
}

.register-container {
    max-width: 480px;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 2rem;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(46, 125, 87, 0.10), 0 8px 24px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.3s ease;
}
.register-container:hover {
    transform: translateY(-4px);
}

.register-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-decoration: none;
    margin-bottom: 2rem;
}
.register-brand .brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D57, #1A56DB);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(46, 125, 87, 0.2);
}
.register-brand .brand-name {
    font-weight: 800;
    font-size: 1.6rem;
    color: #1E2A20;
    letter-spacing: -0.02em;
}
.register-brand .brand-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #767F73;
    background: #EDF1ED;
    padding: 0.1rem 0.6rem;
    border-radius: 40px;
    margin-left: 0.2rem;
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}
.register-header h4 {
    font-weight: 800;
    font-size: 1.6rem;
    color: #1E2A20;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}
.register-header p {
    color: #767F73;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Alert - hanya tampil jika ada pesan */
.alert-custom {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.alert-custom i {
    margin-right: 0.5rem;
}

.form-floating {
    margin-bottom: 1.25rem;
}
.form-floating > .form-control {
    height: calc(3.75rem + 2px);
    border-radius: 0.9rem;
    border: 1.5px solid #E5E7EB;
    background: #ffffff;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-floating > .form-control:focus {
    border-color: #2E7D57;
    box-shadow: 0 0 0 4px rgba(46, 125, 87, 0.08);
}
.form-floating > label {
    padding: 1rem 1.25rem;
    color: #9CA3AF;
    font-weight: 500;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #2E7D57;
    transform: scale(.85) translateY(-.75rem) translateX(.15rem);
}

.password-wrapper {
    position: relative;
}
.password-wrapper .toggle-password {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-size: 1rem;
    padding: 0.4rem 0.2rem;
    cursor: pointer !important;
    z-index: 5;
    transition: color 0.3s ease;
}
.password-wrapper .toggle-password:hover {
    color: #2E7D57;
}
.password-wrapper .toggle-password:focus {
    outline: none;
}
.password-wrapper input[type="password"]::-ms-reveal,
.password-wrapper input[type="password"]::-ms-clear {
    display: none;
}
.password-wrapper input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.btn-register {
    width: 100%;
    padding: 0.85rem;
    border-radius: 50rem;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, #2E7D57, #1A56DB);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(46, 125, 87, 0.25);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-register:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(46, 125, 87, 0.35);
    background: linear-gradient(135deg, #1D5C3E, #0F3B8C);
}
.btn-register:active {
    transform: scale(0.96);
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #767F73;
    font-weight: 500;
}
.login-link a {
    color: #2E7D57;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}
.login-link a:hover {
    color: #1D5C3E;
    text-decoration: underline;
}

/* ============================================================
   BACK LINK - SAMA PERSIS DENGAN LOGIN
   ============================================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #767F73;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-bottom: 1.5rem;
}
.back-link:hover {
    color: #2E7D57;
    transform: translateX(-4px);
}

/* ============================================================
   CUSTOM I-BEAM HITAM UNTUK INPUT
   ============================================================ */
.register-container input[type="text"],
.register-container input[type="email"],
.register-container input[type="password"] {
    cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOCAxVjE1TTMgMUgxM00zIDE1SDEzIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGxpbmVjYXA9InNxdWFyZSIvPjwvc3ZnPg==") 8 8, text !important;
    caret-color: #000000 !important;
    color: #000000 !important;
}
.register-container button[type="submit"] {
    cursor: pointer !important;
}

@media (max-width: 575.98px) {
    body { padding: 1rem; }
    .register-container { padding: 1.75rem 1.25rem 1.5rem; border-radius: 1.5rem; }
    .register-brand .brand-name { font-size: 1.3rem; }
    .register-brand .brand-icon { width: 40px; height: 40px; font-size: 1rem; }
    .register-header h4 { font-size: 1.4rem; }
    .form-floating > .form-control { height: calc(3.5rem + 2px); font-size: 0.9rem; }
    .btn-register { font-size: 0.95rem; padding: 0.75rem; }
}
@media (max-width: 400px) {
    .register-container { padding: 1.25rem 0.9rem 1.25rem; }
    .register-brand .brand-name { font-size: 1.1rem; }
    .register-brand .brand-tag { font-size: 0.5rem; }
}
