/* Auth pages styling */

/* Auth container */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.auth-form {
    background: white;
    border-radius: 8px;
    padding: 60px 0;
    width: 100%;
    max-width: 450px;
}

.auth-form-wide {
    max-width: 600px;
}

/* Auth header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.auth-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Auth form */
.auth-form-inner {
    space-y: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #222;
    border-radius: 5px;
    font-size: 16px;
}

.form-control:focus {
    border-color: #222;
}

.form-control-readonly {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #6c757d;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
	border: 1px solid #222;
}

.btn-primary {
    background-color: #222;
    color: #fff;
}

.btn-primary:hover {
    background-color: #fff;
    color: #222;
}

.btn-secondary {
    background-color: #fff;
    color: #222;
}

.btn-secondary:hover {
    background-color: #222;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.btn-outline:hover {
    background-color: #007bff;
    color: white;
}

.btn-full {
    width: 100%;
}

.btn-link {
    background: none;
    color: #007bff;
    border: none;
    text-decoration: underline;
    padding: 8px 0;
}

.btn-link:hover {
    color: #0056b3;
}

/* Legal acceptances */
.form-legal {
    padding-top: 10px;
}

.legal-acceptances {
    space-y: 15px;
}

.legal-acceptance {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.5;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 13px;
    height: 13px;
}

.checkbox-label a {
    color: #007bff;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Auth links */
.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links span {
    color: #ccc;
    margin: 0 10px;
}

/* Auth footer */


/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-form {
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Legal popup specific styles */
.legal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-popup {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.legal-popup-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.legal-popup-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.legal-popup-content {
    padding: 30px;
}

.legal-document-acceptance {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.legal-document-acceptance:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-document-acceptance h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.version-badge {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
}

.legal-document-preview {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.document-summary h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.document-summary p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.document-link {
    text-align: center;
    margin-top: 15px;
}

.legal-acceptance-checkbox {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.legal-acceptance-checkbox .checkbox-label {
    font-weight: 500;
    color: #333;
}

.legal-acceptance-checkbox .required {
    color: #721c24;
}

.legal-popup-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.legal-notice {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

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

/* Admin-specific styles (for future use) */
.admin-badge {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}