﻿.register-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    padding: 25px 25px;
    margin: 20px 0;
}

.register-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: #003580;
    margin-bottom: 8px;
    text-decoration: none;
    display: inline-block;
}

.register-title {
    font-size: 24px;
    font-weight: 600;
    color: #24292e;
    margin-bottom: 8px;
}

.register-subtitle {
    font-size: 14px;
    color: #586069;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #24292e;
    margin-bottom: 8px;
}

.required {
    color: #d73a49;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5da;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

    .form-input:focus {
        outline: none;
        border-color: #0366d6;
        box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
    }

    .form-input.error {
        border-color: #d73a49;
    }

.phone-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
}

.error-message {
    color: #d73a49;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

    .error-message.show {
        display: block;
    }

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e1e4e8;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

    .password-strength.show {
        display: block;
    }

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

    .password-strength-bar.weak {
        width: 33%;
        background: #d73a49;
    }

    .password-strength-bar.medium {
        width: 66%;
        background: #ffc107;
    }

    .password-strength-bar.strong {
        width: 100%;
        background: #28a745;
    }

.password-requirements {
    font-size: 12px;
    color: #586069;
    margin-top: 6px;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

    .terms-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #0366d6;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .terms-checkbox label {
        font-size: 14px;
        color: #24292e;
        cursor: pointer;
        user-select: none;
        line-height: 1.5;
    }

    .terms-checkbox a {
        color: #0366d6;
        text-decoration: none;
    }

        .terms-checkbox a:hover {
            text-decoration: underline;
        }

.btn-register {
    width: 100%;
    padding: 14px;
    background: #0366d6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-register:hover {
        background: #0256c7;
    }

    .btn-register:active {
        background: #024c9e;
    }

    .btn-register:disabled {
        background: #d1d5da;
        cursor: not-allowed;
    }

.login-link {
    text-align: center;
    font-size: 14px;
    color: #586069;
    margin-top: 24px;
}

    .login-link a {
        color: #0366d6;
        text-decoration: none;
        font-weight: 600;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

.back-home {
    text-align: center;
    margin-top: 16px;
}

    .back-home a {
        color: #0366d6;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }

        .back-home a:hover {
            text-decoration: underline;
        }

/* Select2 Customization */
.select2-container--default .select2-selection--single {
    border: 1px solid #d1d5da;
    border-radius: 8px;
    height: 48px;
    padding: 4px;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 38px;
        padding-left: 12px;
        font-size: 15px;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 46px;
    }

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

/* Ensure original select is hidden when Select2 is applied */
.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Ensure Select2 fills the grid cell */
.select2 { width: 100% !important; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .register-container {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .phone-group {
        grid-template-columns: 1fr;
    }

    .register-title {
        font-size: 22px;
    }
}

