* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13px;
    color: #666;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e1e5eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
    background: #fafbfc;
    color: #333;
}

.form-control:hover {
    border-color: #c5cad4;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #4361ee;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-control::placeholder {
    color: #a0a8b4;
}

.form-control.is-invalid {
    border-color: #e63946;
    background: #fff5f5;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.invalid-feedback {
    color: #e63946;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 12px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #4361ee;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}

.forgot-link:hover {
    color: #3a0ca3;
}

.divider {
    height: 1px;
    background: #e5e7eb;
    margin: 22px 0;
}

.powered-by {
    text-align: center;
}

.powered-by p {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.powered-by img {
    height: 22px;
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

.powered-by img:hover {
    opacity: 0.8;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 13px;
    border-left: 3px solid #10b981;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 13px;
    border-left: 3px solid #ef4444;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.5s ease;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.auth-heading {
    text-align: center;
    margin-bottom: 25px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 13px;
    color: #666;
}

.auth-link {
    color: #4361ee;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.auth-link:hover {
    color: #3a0ca3;
    text-decoration: underline;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e1e5eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
    background: #fafbfc;
    color: #333;
}

.auth-input:hover {
    border-color: #c5cad4;
    background: #ffffff;
}

.auth-input:focus {
    outline: none;
    border-color: #4361ee;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.auth-input.is-invalid {
    border-color: #e63946;
    background: #fff5f5;
}

.auth-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 12px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.35);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.auth-footer-link {
    color: #9ca3af;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.auth-footer-link:hover {
    color: #6b7280;
}

.auth-body {
    margin-top: 10px;
}

.auth-text {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
}

.auth-hint {
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .login-card,
    .auth-card {
        padding: 28px 24px;
    }

    .login-header h1,
    .auth-title {
        font-size: 20px;
    }
}
