/*
File: /static/css/register.css
Purpose: Executive-level styling for church leadership registration
Version: 2025-09-27 v9.0 - Complete CSS for dual-mode registration
*/

/* Base styling */
* {
    box-sizing: border-box;
}

/* Container */
.register-container {
    max-width: 650px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.register-card {
    background: white;
    border-radius: 2px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

/* Header */
.header {
    background: #722f37;
    color: #ffffff;
    padding: 3rem 2.5rem;
    text-align: center;
}

.header h1 {
    margin: 0 0 0.75rem 0;
    font-size: 1.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.header p {
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Form sections */
form {
    padding: 2.5rem;
}

.section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    color: #722f37;
    font-weight: 500;
    letter-spacing: 0.25px;
}

/* Form fields */
.field {
    margin-bottom: 1.5rem;
    position: relative;
}

.field:last-child {
    margin-bottom: 0;
}

.row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.row .field {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c2c2c;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
}

input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #d4d4d4;
    border-radius: 1px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #fafafa;
}

input:focus {
    outline: none;
    border-color: #722f37;
    background: white;
    box-shadow: inset 0 1px 3px rgba(114, 47, 55, 0.1);
}

/* Password field with toggle */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #722f37;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 2px;
    transition: background-color 0.2s ease;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.password-toggle:hover {
    background: #f0f0f0;
}

/* Radio buttons - Main selection cards */
.radio-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #444;
    padding: 1rem 1.5rem;
    border: 2px solid #d4d4d4;
    border-radius: 1px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-bottom: 0.75rem;
    width: 100%;
}

.radio-card:hover {
    background: white;
    border-color: #722f37;
    color: #722f37;
}

.radio-card input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: none;
}

.radio-card input[type="radio"]:checked {
    accent-color: #722f37;
}

.radio-card:has(input:checked) {
    background: #722f37;
    color: white;
    border-color: #722f37;
}

/* Radio buttons - Small type selection */
.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-small {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #444;
    padding: 0.6rem 1rem;
    border: 2px solid #d4d4d4;
    border-radius: 1px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.radio-small:hover {
    background: white;
    border-color: #722f37;
    color: #722f37;
}

.radio-small input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: none;
}

.radio-small input[type="radio"]:checked {
    accent-color: #722f37;
}

.radio-small:has(input:checked) {
    background: #722f37;
    color: white;
    border-color: #722f37;
}

/* Search results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 2px solid #d4d4d4;
    border-radius: 1px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    max-height: 250px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

.search-results:empty {
    display: none;
}

.search-results .company-option {
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.search-results .company-option:last-child {
    border-bottom: none;
}

.search-results .company-option:hover {
    background: #f8f8f8;
    color: #722f37;
}

.search-results p {
    padding: 1rem 1.25rem;
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

/* Help text */
.help-text {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.375rem;
    font-style: italic;
    line-height: 1.3;
}

/* Actions */
.actions {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e8e8;
}

.btn-primary {
    background: #722f37;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 1px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.2);
}

.btn-primary:hover {
    background: #5d252b;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(114, 47, 55, 0.3);
}

.login-link {
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.login-link a {
    color: #722f37;
    text-decoration: none;
    font-weight: 500;
}

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

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    margin: 0 2.5rem 1.5rem 2.5rem;
    border-radius: 1px;
    font-size: 0.9rem;
    border-left: 4px solid;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.alert-error {
    background: #fef5f5;
    border-left-color: #722f37;
    color: #722f37;
}

.alert-info {
    background: #f8f9ff;
    border-left-color: #722f37;
    color: #722f37;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .register-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .header {
        padding: 2rem 1.5rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    form {
        padding: 2rem 1.5rem;
    }
    
    .row {
        flex-direction: column;
        gap: 0;
    }
    
    .row .field {
        margin-bottom: 1.5rem;
    }
    
    .radio-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .radio-small {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 1rem;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    form {
        padding: 1.5rem 1rem;
    }
    
    .section h3 {
        font-size: 1.1rem;
    }
}
