/* ===================================
   AUTH.CSS - Styles d'authentification
   =================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
}

/* ===================================
    HEADER
   =================================== */

.header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo:hover {
    color: #2a2a2a;
}

/* ===================================
    MAIN CONTAINER - SPLIT SCREEN
   =================================== */

.main-container {
    display: flex;
    min-height: calc(100vh - 65px);
}

/* ===================================
   LEFT SIDE - INFO SIDEBAR
   =================================== */

.left-side {
    flex: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: white;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.left-content {
    max-width: 500px;
}

.left-content h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.left-content p {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Features List */
.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ===================================
   RIGHT SIDE - FORM AREA
   =================================== */

.right-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: white;
}

.form-container {
    width: 100%;
    max-width: 440px;
}

/* ===================================
   FORM HEADER
   =================================== */

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.form-subtitle {
    font-size: 16px;
    color: #6b6b6b;
}

/* ===================================
   ALERTS & MESSAGES
   =================================== */

.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert strong {
    font-weight: 600;
}

/* ===================================
   INFO BOX
   =================================== */

.info-box {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 14px;
    color: #6b6b6b;
}

.info-box a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.info-box a:hover {
    color: #2a2a2a;
}

/* ===================================
   ACCOUNT TYPE SELECTION
   =================================== */

.account-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.account-type-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.account-type-option {
    position: relative;
}

.account-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.account-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    text-align: center;
}

.account-type-label:hover {
    border-color: #1a1a1a;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.account-type-option input[type="radio"]:checked + .account-type-label {
    border-color: #1a1a1a;
    background: #fafafa;
}

.account-type-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.account-type-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.account-type-description {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.5;
}

/* ===================================
   FORM SECTIONS
   =================================== */

.form-section {
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.form-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* ===================================
   FORM LINKS (Remember me, Forgot password)
   =================================== */

.form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
}

.form-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-link:hover {
    text-decoration: underline;
    color: #2a2a2a;
}

/* ===================================
   CHECKBOX GROUP
   =================================== */

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 14px;
    color: #6b6b6b;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
}