/* Unified Authentication Styles */

body.unified-auth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    margin: 20px;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h2 {
    margin: 0;
    font-weight: 600;
}

.login-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.login-body {
    padding: 2rem;
}

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

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

.unified-auth .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.unified-auth .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.unified-auth .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.unified-auth .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* Role Selection Styles */
.role-selection {
    margin-bottom: 1.5rem;
}

.role-options {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}

.role-option {
    flex: 1;
    position: relative;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-option label {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 0;
}

.role-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.role-option label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.role-option input[type="radio"]:checked + label:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: white !important;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white !important;
}

.unified-auth .alert {
    border-radius: 10px;
    border: none;
}

.admin-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.admin-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.admin-link a:hover {
    text-decoration: underline;
}

/* Registration specific styles */
.password-requirements {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.requirements-list {
    margin: 0.25rem 0 0 0;
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.requirements-list li {
    margin-bottom: 0.25rem;
    color: #6c757d;
}

/* Auth footer styles */
.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.auth-footer a {
    color: #667eea;
    font-weight: 500;
}

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

/* Auth secondary button */
.auth-secondary .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-secondary .btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        margin: 10px;
        max-width: 350px;
    }
    
    .login-header {
        padding: 1.5rem;
    }
    
    .login-body {
        padding: 1.5rem;
    }
}
