.form-message.success {
    background: #cc3366;
    color: #ffffff;
    padding: 9px;
    font-weight: 600;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}



.auth-card {
    max-width: 512px;
    margin: 21px auto;
    /* border: 1px #dddddd solid; */
    padding: 21px;
    border-radius: 9px;
    box-shadow: 0px 0px 14px 2px #dddddd;
}

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

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    color: #64748b;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
    margin: 12px 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-error {
    display: none;
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
    animation: slideDown 0.2s ease;
}

.form-group.error input {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error label {
    color: #ef4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-strength {
    display: none;
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-bar-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
}

.strength-weak .strength-bar-fill {
    width: 33%;
    background: #ef4444;
}

.strength-weak .strength-text {
    color: #ef4444;
}

.strength-medium .strength-bar-fill {
    width: 66%;
    background: #f59e0b;
}

.strength-medium .strength-text {
    color: #f59e0b;
}

.strength-strong .strength-bar-fill {
    width: 100%;
    background: #10b981;
}

.strength-strong .strength-text {
    color: #10b981;
}

.form-footer {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.forgot-password {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #cc3366;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #cc3366;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 21px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000000;
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 16px;
    font-size: 14px;
    color: #94a3b8;
    position: relative;
}

.auth-switch {
    text-align: center;
    font-size: 15px;
    color: #64748b;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Loading state */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 16px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 28px;
    }

    .form-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Password Toggle Styles */

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute !important;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none !important;
    cursor: pointer !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #666 !important;
    transition: color 0.3s ease !important;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #ffffff !important;
    background: #f4d95f !important;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}