/* ==============================================================================
   AMETIST IOT PLATFORM — authres.css
   Password Reset Page Styles (/dialog/auth/respasw/)
   ============================================================================== */

.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: 460px;
    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, #f59e0b, #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;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.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);
}

.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);
}

/* Status Messages */
.auth-message {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.auth-message.success {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}

/* Links */
.back-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.back-link a {
    color: #94a3b8;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: #c084fc;
}

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