/* Register Page Styles - Import main.css for consistency */
@import url('main.css');

/* Registration specific styles */
.register-card {
    max-width: 500px;
}

.required {
    color: #ff4444;
    font-weight: bold;
}

.success-message {
    background-color: #4caf50;
    color: #fff;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.link:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Form adjustments for registration */
.register-card .form-group {
    margin-bottom: 1.2rem;
}

.register-card .login-btn {
    margin-top: 0.5rem;
}

/* Terms & Conditions scroll box */
.terms-group {
    margin-top: 1rem;
}

.terms-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 600;
}

.terms-box {
    max-height: 220px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    box-shadow: var(--shadow-light) inset;
}

.terms-box h3 {
    margin-bottom: 0.5rem;
}

.terms-box h4 {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.terms-box p {
    line-height: 1.5;
    color: var(--text-secondary);
}

.terms-status {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terms-status.ok {
    color: var(--accent-color);
    font-weight: 600;
}

/* Disabled submit button state */
.btn-disabled,
.btn-disabled:hover {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 1.5rem;
    }

    .register-card .form-group {
        margin-bottom: 1rem;
    }
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-card {
    width: 100%;
    max-width: 720px;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: #e8e2cc;
}

.modal-close {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #e8e2cc;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
}

.modal-body {
    padding: 1rem 1.25rem;
    overflow: hidden;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #e8e2cc;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: #fff;
}
