/* Basic resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
}

/* Main container styling */
.signup-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns by default */
    max-width: 1100px;
    width: 100%;
    margin: auto;
    gap: 30px;
    align-items: center;
    padding: 40px 20px;
    flex-grow: 1;
}

/* Left section styling */
.left-section {
    text-align: center;
    padding: 30px;
}

.left-section .logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.left-section .logo:hover {
    transform: scale(1.05);
}

.left-section h1 {
    font-size: 42px;
    color: #df811c;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.left-section p {
    font-size: 20px;
    line-height: 1.6;
    margin-top: 15px;
    color: #666;
    max-width: 450px;
    margin: 0 auto;
}

/* Right section styling */
.right-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-box {
    width: 100%;
    max-width: 420px;
    padding: 35px 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.form-box h2 {
    color: #333;
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-subtitle {
    color: #777;
    font-size: 16px;
    margin-bottom: 25px;
}

/* Form elements - keeping Bootstrap compatible classes but styling them like login */
.form-floating {
    position: relative;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 14px 14px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #df811c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(223, 129, 28, 0.2);
    background-color: #fff;
}

.form-text {
    font-size: 12px;
    color: #777;
    text-align: left;
    margin-top: 5px;
}

.form-check {
    margin-top: 20px;
    text-align: left;
}

.form-check-label {
    font-size: 14px;
    user-select: none;
    margin-left: 5px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group.focused .input-icon {
    color: #df811c;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 18px;
}

.form-box input[type="text"],
.form-box input[type="password"] {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-box input[type="text"]:focus,
.form-box input[type="password"]:focus {
    border-color: #df811c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(223, 129, 28, 0.2);
    background-color: #fff;
}

/* Password container styling */
.password-container {
    position: relative;
    width: 100%;
}

.password-container .toggle-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #888;
    transition: color 0.2s ease;
}

.password-container .toggle-icon:hover {
    color: #df811c;
}

.terms-link {
    color: #df811c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #c87318;
    text-decoration: underline;
}

/* Submit button styling */
.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #df811c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(223, 129, 28, 0.2);
}

.btn-primary:hover {
    background-color: #c87318;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(223, 129, 28, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(223, 129, 28, 0.3);
}

/* Login link section */
.login-link {
    margin-top: 25px;
}

.login-link hr {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
}

.login-link a {
    display: inline-block;
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-link a span {
    color: #df811c;
    font-weight: 600;
}

.login-link a:hover {
    color: #df811c;
}

/* Modal styling */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 25px;
}

.modal-header .modal-title {
    color: #df811c;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.modal-body h6 {
    color: #444;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-body p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 15px 25px;
}

/* Media Queries */
@media (min-width: 768px) and (max-width: 1023px) {
    .signup-container {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        padding: 30px 20px;
    }
    
    .left-section {
        padding: 20px;
    }
    
    .left-section h1 {
        font-size: 36px;
    }
    
    .left-section p {
        font-size: 18px;
    }
    
    .form-box {
        max-width: 500px;
    }
}

@media (max-width: 767px) {
    .signup-container {
        grid-template-columns: 1fr; /* Single column layout */
        padding: 20px;
        gap: 15px;
    }
    
    .left-section {
        padding: 15px;
    }
    
    .left-section .logo {
        max-width: 140px;
    }
    
    .left-section h1 {
        font-size: 32px;
    }
    
    .left-section p {
        font-size: 16px;
    }
    
    .right-section {
        padding: 15px;
    }
    
    .form-box {
        padding: 25px 20px;
    }
    
    .form-box h2 {
        font-size: 24px;
    }
    
    .form-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 12px;
        font-size: 15px;
    }
    
    .btn-primary {
        padding: 12px;
        font-size: 16px;
    }
}

/* Alerts and notifications */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease;
    border: none;
}

.alert-danger {
    background-color: #ffe8e8;
    color: #d92b2b;
    border-left: 4px solid #d92b2b;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Keep any additional styles from the original signup CSS */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Password validation styles */
.password-feedback {
    margin-top: 10px;
}
