/* Auth Forms Styling */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f766e 50%, #10b981 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}



.admin-card {
    max-width: 450px;
}

.admin-logo {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.admin-logo h2 {
    font-size: 2rem;
    color: #10b981;
    margin: 0;
    font-weight: 700;
}

.admin-logo p {
    color: #666;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.auth-header p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-control {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.text-danger {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.validation-summary {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 10px;
    padding: 1rem;
    color: #c62828;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #10b981;
    border: 2px solid #10b981;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
}

/* Success Card */
.success-card {
    text-align: center;
}

.success-icon {
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-message {
    text-align: left;
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.success-message p {
    margin: 0.5rem 0;
    color: #333;
}

.success-message ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.success-message li {
    margin: 0.5rem 0;
    color: #666;
}

.success-message .note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Error Card */
.error-card {
    text-align: center;
}

.error-icon {
    margin-bottom: 2rem;
    animation: shake 0.5s ease-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.error-message {
    text-align: left;
    background: #ffebee;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid #f44336;
}

.error-message p {
    margin: 0.5rem 0;
    color: #333;
}

.error-message ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.error-message li {
    margin: 0.5rem 0;
    color: #666;
}

.error-message .note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button-group a {
    flex: 1;
}

/* Admin Login Body */
.admin-login-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }
}