/* Modern Authentication Pages Design */

.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.auth-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #ffffff;
    padding: 2.5rem 2rem;
    text-align: center;
}

.auth-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.auth-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.auth-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.auth-body {
    padding: 2.5rem 2rem;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.auth-form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.auth-form-control:focus {
    outline: none;
    border-color: #17a2b8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

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

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.auth-footer a {
    color: #17a2b8;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #138496;
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #888;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: #17a2b8;
}

.alert-custom {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: none;
    font-size: 0.95rem;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #17a2b8;
}

.remember-me label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    color: #555;
}

@media (max-width: 576px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        border-radius: 15px;
    }
    
    .auth-header {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h3 {
        font-size: 1.5rem;
    }
    
    .auth-header i {
        font-size: 2.5rem;
    }
    
    .auth-body {
        padding: 2rem 1.5rem;
    }
}

/* Crispy Forms Override */
.crispy-form .form-group {
    margin-bottom: 1.5rem;
}

.crispy-form label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.crispy-form input[type="text"],
.crispy-form input[type="password"],
.crispy-form input[type="email"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.crispy-form input[type="text"]:focus,
.crispy-form input[type="password"]:focus,
.crispy-form input[type="email"]:focus {
    outline: none;
    border-color: #17a2b8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.crispy-form .invalid-feedback {
    color: #c33;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
