/* register.css - Two Column Registration Page */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Base Styles */
* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    
    /* NEW: GRID TILE BACKGROUND */
    background-color: #ffffff; /* White base color */
    background-image: 
        linear-gradient(to right, #f0f0f0 1px, transparent 1px),
        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
    background-size: 20px 20px; /* Adjust tile size here */
    
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}


/* Two Column Container */
.two-column-container {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Left Column - Image/Placeholder */
.left-column {
    flex: 1;
    background: url(../assets/images/column1.png);
    background-size: contain;       /* Scales to fit the whole image */
    background-position: center;
    background-repeat: no-repeat;
    padding: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.left-column .logo {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: white;
}

.image-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.image-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.image-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 24px;
}

.feature-text {
    font-size: 16px;
    font-weight: 500;
}

.placeholder-graphic {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    opacity: 0.1;
}

.graphic-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid white;
    border-radius: 50%;
    top: 0;
    right: 0;
}

.graphic-square {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid white;
    top: 50px;
    right: 100px;
}

.graphic-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 130px solid white;
    top: 100px;
    right: 200px;
    opacity: 0.3;
}

/* Right Column - Registration Form */
.right-column {
 
    flex: 1.2;
    padding: 40px;
    overflow-y: auto;
    max-height: 700px;
}

.register-form-container {
    font-family: 'Montserrat', sans-serif;
    max-width: 500px;
    margin: 0 auto;
}

.form-header {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 16px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control.is-invalid {
    border-color: #e74c3c;
}

.invalid-feedback {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    background: #f8f9fa;
    flex: 1;
}

.radio-option:hover {
    border-color: #3498db;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #3498db;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-checkmark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #3498db;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    font-weight: 600;
    color: #2c3e50;
}

.radio-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

/* Role Selection */
.role-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.role-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.role-options {
    display: flex;
    gap: 15px;
}

.role-card {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
}

.role-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.role-card.selected {
    border-color: #2ecc71;
    background: #f0fff4;
}

.role-card input[type="radio"] {
    display: none;
}

.role-icon {
    width: 40px;
    height: 40px;
    background: #3498db;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.role-icon.user {
    background: #3498db;
}

.role-icon.driver {
    background: #2ecc71;
}

.role-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.role-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Driver Fields */
.driver-fields {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    display: none;
}

.driver-fields h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 600;
}

/* Button */
.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #2ecc71;
    color: white;
}

.btn-primary:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Form Links */
.form-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.form-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .two-column-container {
        flex-direction: column;
        max-width: 600px;
    }
    
    .left-column {
        padding: 30px;
        min-height: 300px;
    }
    
    .right-column {
        padding: 30px;
        max-height: none;
    }
    
    .placeholder-graphic {
        display: none;
    }
}

@media (max-width: 768px) {
    .two-column-container {
        border-radius: 20px;
    }
    
    .left-column,
    .right-column {
        padding: 25px;
    }
    
    .left-column .logo {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .image-content h1 {
        font-size: 24px;
    }
    
    .image-content p {
        font-size: 16px;
    }
    
    .role-options {
        flex-direction: column;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .two-column-container {
        border-radius: 16px;
    }
    
    .left-column,
    .right-column {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
}
