:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #d6e2ea;
    --primary-pale: #f4f7fa;
    --secondary: #18bc9c;

    --white: #ffffff;
    --text-dark: #1f2d3a;
    --text-muted: #6c7a89;

    --gradient-primary: linear-gradient(
        135deg,
        #2c3e50 0%,
        #243342 50%,
        #1a252f 100%
    );
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Sans 3", sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--primary-pale);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: var(--gradient-primary);
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: "Playfair Display", serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
}

/* Main Wrapper */
.auth-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 20px;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: 8px;
    padding: 36px 36px 32px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.1);
}

/* Logo */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.auth-logo img {
    width: 82px;
    height: 82px;
    object-fit: cover;
}

/* Title */
.auth-card-title {
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

/* Hint */
.form-hint {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Success Alert */
.alert-success {
    background: #d1f2eb;
    border-left: 3px solid var(--secondary);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #0f6e56;
    margin-bottom: 20px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 11px 13px;
    font-size: 14px;
    font-family: "Source Sans 3", sans-serif;
    color: var(--text-dark);
    background: var(--primary-pale);
    border: 1.5px solid var(--primary-light);
    border-radius: 4px;
    outline: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
}

.form-input::placeholder {
    color: #aab3bc;
}

/* Button */
.btn-primary {
    width: 100%;
    border: none;
    background: var(--primary);
    color: var(--white);
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
    font-family: "Source Sans 3", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;

    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Footer Link */
.auth-footer {
    margin-top: 22px;
    text-align: center;
}

.auth-footer a {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Page Footer */
.page-footer {
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--primary-light);
}
.copyright {
    margin-top: 18px;
    padding-top: 14px;

    border-top: 1px solid var(--primary-light);

    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* Animated Error Alert */
.alert-error {
    text-align: center;
    display: flex;
    align-items: flex-start;
    gap: 12px;

    background: #fdecea;
    border: 1px solid #f5c6cb;

    padding: 14px 16px;
    border-radius: 8px;

    color: #c0392b;
    font-size: 13px;

    margin-bottom: 20px;
}

.alert-icon {
    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: #e74c3c;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 700;

    flex-shrink: 0;
}

.alert-content {
    line-height: 1.6;
}

/* Animation */
.animated-alert {
    animation:
        shakeX 0.45s ease,
        fadeIn 0.3s ease;
}

@keyframes shakeX {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-6px);
    }
    40% {
        transform: translateX(6px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(4px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px 24px;
    }

    .navbar {
        padding: 0 20px;
    }
}
