/* Register page — Malaysia Linguistics Lab theme (register only). */

.register-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 0.75rem;
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-panel {
    box-sizing: border-box;
    width: 100%;
    padding: 1.65rem 1.45rem 1.5rem;
    border-radius: 18px;
    background:
        linear-gradient(
            165deg,
            rgba(14, 48, 40, 0.92),
            rgba(7, 24, 20, 0.94)
        );
    border: 1px solid rgba(88, 196, 180, 0.28);
    box-shadow:
        0 0 0 1px rgba(239, 215, 126, 0.06),
        0 18px 42px rgba(0, 0, 0, 0.35),
        0 0 36px rgba(69, 156, 144, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.register-brand {
    display: block;
    margin: 0 0 0.35rem;
    color: #efd77e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.register-panel h2 {
    margin: 0 0 1.2rem;
    color: #efd77e;
    font-size: clamp(1.55rem, 3.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 0 18px rgba(239, 215, 126, 0.18);
}

.register-form {
    width: 100%;
    margin: 0;
    max-width: none;
}

.register-panel .form-label {
    color: #efd77e;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.register-panel .form-control {
    background: rgba(8, 32, 28, 0.88) !important;
    color: #f3f7f4 !important;
    border: 1px solid rgba(88, 196, 180, 0.42) !important;
    border-radius: 12px !important;
    min-height: 46px;
    padding: 0.65rem 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.register-panel .form-control::placeholder {
    color: rgba(210, 230, 220, 0.38);
}

.register-panel .form-control:hover {
    border-color: rgba(120, 220, 200, 0.55) !important;
}

.register-panel .form-control:focus {
    background: rgba(10, 40, 34, 0.95) !important;
    color: #ffffff !important;
    border-color: rgba(239, 215, 126, 0.65) !important;
    box-shadow:
        0 0 0 3px rgba(88, 196, 180, 0.22),
        0 0 18px rgba(239, 215, 126, 0.12) !important;
    outline: none;
}

.register-panel .form-control:-webkit-autofill,
.register-panel .form-control:-webkit-autofill:hover,
.register-panel .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #f3f7f4;
    caret-color: #f3f7f4;
    box-shadow: 0 0 0 1000px rgba(8, 32, 28, 0.96) inset !important;
    transition: background-color 99999s ease-out;
}

.register-panel .register-help,
.register-panel .form-text.register-help {
    margin-top: 0.35rem;
    color: rgba(180, 220, 208, 0.78);
    font-size: 0.82rem;
    line-height: 1.35;
    opacity: 1;
}

.register-mismatch {
    margin-top: 0.45rem;
    color: #efd77e;
    font-size: 0.86rem;
    font-weight: 600;
}

.register-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
    margin-top: 0.15rem;
    min-height: auto;
}

.register-check .form-check-input {
    float: none;
    margin: 0;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    background-color: rgba(8, 32, 28, 0.88);
    border: 1px solid rgba(88, 196, 180, 0.5);
    border-radius: 4px;
    cursor: pointer;
}

.register-check .form-check-input:checked {
    background-color: rgba(45, 130, 112, 0.95);
    border-color: rgba(239, 215, 126, 0.65);
}

.register-check .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(88, 196, 180, 0.22);
    border-color: rgba(239, 215, 126, 0.55);
}

.register-check .form-check-label {
    color: rgba(220, 236, 228, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.register-panel .btn-register {
    width: 100%;
    min-height: 48px;
    margin-top: 0.15rem;
    border: 1px solid rgba(239, 215, 126, 0.45);
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(45, 130, 112, 0.95),
            rgba(22, 78, 68, 0.98)
        );
    color: #efd77e;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(88, 196, 180, 0.16);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.register-panel .btn-register:hover {
    transform: translateY(-1px);
    border-color: rgba(239, 215, 126, 0.7);
    color: #fff4c4;
    background:
        linear-gradient(
            180deg,
            rgba(55, 150, 130, 0.98),
            rgba(28, 92, 80, 1)
        );
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.32),
        0 0 22px rgba(239, 215, 126, 0.14);
}

.register-panel .btn-register:focus-visible {
    outline: 3px solid rgba(239, 215, 126, 0.45);
    outline-offset: 2px;
}

.register-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1.35rem 0;
}

.register-divider::before,
.register-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(88, 196, 180, 0.45),
        transparent
    );
}

.register-divider span {
    color: #efd77e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
}

.google-login-button {
    position: relative;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px 10px 44px;
    background: rgba(10, 36, 32, 0.9);
    color: #f2f7f4;
    border: 1px solid rgba(88, 196, 180, 0.4);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        color 0.18s ease;
}

.google-login-button:hover {
    background: rgba(16, 52, 46, 0.96);
    color: #efd77e;
    border-color: rgba(239, 215, 126, 0.45);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.28),
        0 0 16px rgba(88, 196, 180, 0.14);
    transform: translateY(-1px);
    text-decoration: none;
}

.google-login-button:focus-visible {
    outline: 3px solid rgba(88, 196, 180, 0.4);
    outline-offset: 2px;
}

.google-login-icon-wrap {
    position: absolute;
    left: 14px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-login-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.register-google-help {
    margin: 0.65rem 0 0;
    text-align: center;
    color: rgba(210, 230, 220, 0.72);
    font-size: 0.8rem;
    line-height: 1.4;
}

.register-login-text {
    margin: 1.25rem 0 0;
    text-align: center;
    color: rgba(220, 236, 228, 0.82);
    font-size: 0.92rem;
    line-height: 1.45;
}

.register-login-text a {
    color: #efd77e;
    font-weight: 700;
    text-decoration: none;
}

.register-login-text a:hover,
.register-login-text a:focus-visible {
    color: #ffe9a8;
    text-decoration: underline;
}

/* Tablet */
@media (max-width: 768px) {
    .register-page {
        max-width: 420px;
        min-height: calc(100vh - 130px);
        padding: 0 0.85rem;
    }

    .register-panel {
        padding: 1.45rem 1.25rem 1.3rem;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .register-page {
        max-width: 100%;
        min-height: 0;
        align-items: flex-start;
        margin: 0.5rem auto 1.5rem;
        padding: 0 0.35rem;
    }

    .register-panel {
        padding: 1.25rem 1rem 1.15rem;
        border-radius: 16px;
    }

    .register-panel h2 {
        margin-bottom: 1rem;
        font-size: 1.45rem;
    }

    .register-panel .mb-3 {
        margin-bottom: 0.8rem !important;
    }

    .register-panel .form-control {
        min-height: 44px;
    }

    .register-panel .btn-register {
        min-height: 46px;
    }

    .register-login-text {
        margin-top: 1.1rem;
        font-size: 0.88rem;
    }
}

@media (min-width: 900px) {
    .register-page {
        min-height: calc(100vh - 160px);
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .register-panel {
        padding: 1.85rem 1.75rem 1.65rem;
    }
}
