/* Register Page Styles - Matching Login Page Design */

/* =================================
   IMPORTS & VARIABLES
   ================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =================================
   BASE LAYOUT
   ================================= */
html, body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    font-family: 'Inter', 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.full-background {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 50%, #95a5a6 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 40px 20px;
}

.full-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* =================================
   FORM STYLING
   ================================= */
form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(10px);
    margin: 20px auto;
}

form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* =================================
   TYPOGRAPHY
   ================================= */
h1 {
    color: #333;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

h3 {
    color: #333;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 500;
}

/* =================================
   FORM FIELDS
   ================================= */
.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.field-group input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.field-group input:focus {
    outline: none;
    border-color: #0052a3;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 82, 163, 0.1);
}

.field-group input::placeholder {
    color: #888;
}

/* =================================
   PROFILE TYPE SECTION
   ================================= */
.profile-type-section {
    margin: 25px 0;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-type-section h3 {
    margin-top: 0;
    color: #0052a3;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.profile-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-type-options label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-type-options label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 82, 163, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.profile-type-options label:hover::before {
    width: 300px;
    height: 300px;
}

.profile-type-options label:hover {
    background: rgba(0, 82, 163, 0.05);
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 163, 0.15);
}

.profile-type-options input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: #0052a3;
    cursor: pointer;
}

.profile-type-options strong {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* Selected state for radio buttons */
.profile-type-options input[type="radio"]:checked + strong {
    color: #0052a3;
}

.profile-type-options label:has(input[type="radio"]:checked) {
    background: rgba(0, 82, 163, 0.1);
    border-color: #0052a3;
    box-shadow: 0 4px 12px rgba(0, 82, 163, 0.2);
}

/* =================================
   SUBMIT BUTTON
   ================================= */
button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0052a3 0%, #0099cc 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

button[type="submit"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 82, 163, 0.4);
}

/* =================================
   ERROR MESSAGES
   ================================= */
.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    margin-top: 8px;
    font-size: 14px;
}

/* =================================
   HELP TEXT
   ================================= */
small {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
    margin-top: 8px;
    display: block;
}

/* =================================
   NAVIGATION LINKS
   ================================= */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #0052a3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.auth-links a:hover {
    color: #4da6ff;
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(0, 82, 163, 0.3);
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media (max-width: 768px) {
    .full-background {
        padding: 20px 10px;
    }
    
    form {
        padding: 30px 20px;
        margin: 10px auto;
        max-width: 100%;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .profile-type-section {
        padding: 15px;
        margin: 20px 0;
    }
    
    .profile-type-options label {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .profile-type-options input[type="radio"] {
        margin-right: 8px;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .full-background {
        padding: 15px 5px;
    }
    
    form {
        padding: 20px 15px;
        width: 95%;
        margin: 5px auto;
    }
    
    .field-group input,
    button[type="submit"] {
        padding: 12px;
        font-size: 16px;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .profile-type-section {
        padding: 12px;
        margin: 15px 0;
    }
}

/* Add smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}
