/* ==============================================================================
   AMETIST IOT PLATFORM — authreg.css
   Registration Page Styles (/dialog/auth/reg/)
   ============================================================================== */

.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.auth-container {
    background: rgba(14, 10, 36, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 44px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.35);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    animation: authFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #34d399, #7c3aed, #38bdf8);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none;
}

.auth-brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.7));
}

.auth-brand-text-wrap {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.auth-brand-text {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.auth-brand-slogan {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #a78bfa;
    text-transform: uppercase;
    margin-top: 2px;
}

.auth-title {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

/* --- Form Elements --- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 13px 18px;
    background: rgba(26, 26, 62, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.form-input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(26, 26, 62, 0.9);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25) !important;
}

.form-input.success {
    border-color: #34d399 !important;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.25) !important;
}

.error-message {
    color: #f87171;
    font-size: 0.82rem;
    margin-top: 6px;
    line-height: 1.4;
    display: none;
}

/* 152-FZ Consent Checkbox */
.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0;
    padding: 12px 16px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.consent-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #7c3aed;
}

.consent-group label {
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.5;
    cursor: pointer;
}

.consent-group label a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 500;
}

.consent-group label a:hover {
    color: #c084fc;
}

.consent-error {
    color: #f87171;
    font-size: 0.82rem;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.submit-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.45);
    margin-top: 6px;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.7);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Login Link Section */
.login-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.login-text {
    color: #94a3b8;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    transition: all 0.25s ease;
}

.login-link:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

@media (max-width: 480px) {
    .auth-container {
        padding: 30px 18px;
    }
    .auth-logo {
        font-size: 1.8rem;
    }
}
