﻿* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #eef6ff 0%, #ffffff 45%, #eaf2ff 100%);
    color: #0f172a;
    overflow-x: hidden;
}

.register-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 16px;
    position: relative;
    z-index: 2;
}

.register-card {
    width: 100%;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 30px;
    padding: 34px 34px 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
}

.brand-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
}

.login-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.brand-title {
    font-size: 25px;
    font-weight: 900;
    color: #0759d8;
    letter-spacing: 1px;
    line-height: 1;
}

.brand-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-top: 6px;
}

.register-title {
    text-align: center;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 900;
    color: #081936;
    margin: 0 0 10px;
}

.register-subtitle {
    text-align: center;
    color: #526179;
    font-size: 18px;
    margin-bottom: 28px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 16px;
}

    .input-label i {
        width: 22px;
        text-align: center;
        color: #075eea;
        font-size: 21px;
    }

.login-input {
    height: 52px;
    border-radius: 12px !important;
    border: 1px solid #cbd7e6 !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: #0f172a;
    font-size: 16px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

    .login-input:focus {
        border-color: #0b63f6 !important;
        box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.12) !important;
        background: #fff !important;
    }

.section-line {
    height: 1px;
    background: #d9e2ef;
    margin: 20px 0 24px;
}

.password-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 14px;
    color: #526179;
    cursor: pointer;
    font-size: 18px;
}

    .password-toggle:hover {
        color: #075eea;
    }

.security-box {
    display: flex;
    gap: 16px;
    align-items: center;
    background: linear-gradient(135deg, #eaf5ff, #dcedff);
    border-radius: 16px;
    padding: 16px 18px;
    margin: 20px 0 22px;
}

.security-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b63f6, #0751d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 48px;
}

.security-box strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 4px;
}

.security-box p {
    margin: 0;
    color: #334155;
    font-size: 14px;
}

.register-btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0b67ff, #0051df);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(0, 81, 223, 0.28);
    transition: all 0.2s ease;
}

    .register-btn:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 20px 36px rgba(0, 81, 223, 0.34);
    }

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 26px 0 18px;
    color: #64748b;
}

    .divider span {
        height: 1px;
        background: #cbd7e6;
        flex: 1;
    }

    .divider b {
        font-weight: 600;
    }

.bottom-links {
    text-align: center;
    color: #475569;
    font-size: 16px;
}

    .bottom-links a {
        color: #075eea;
        text-decoration: none;
        font-weight: 800;
        margin-left: 5px;
    }

.back-home-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
}

    .back-home-link:hover {
        color: #075eea;
    }

.validator-summary,
.msg-label {
    display: block;
    border-radius: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
}

.validator-summary {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.small-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

/* Select2 professional styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 52px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd7e6 !important;
    background: rgba(255, 255, 255, 0.82) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0b63f6 !important;
    box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.12) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 52px !important;
    padding-left: 16px !important;
    padding-right: 42px !important;
    color: #0f172a !important;
    font-size: 16px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 52px !important;
    right: 10px !important;
}

.select2-dropdown {
    border: 1px solid #cbd7e6 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.select2-results__option {
    padding: 12px 16px !important;
    font-size: 15px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #eaf3ff !important;
    color: #0f172a !important;
}

.country-option {
    display: flex;
    align-items: center;
}

.country-flag {
    margin-right: 14px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    flex: 0 0 auto;
}

/* Background decoration */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.shape-one {
    width: 420px;
    height: 420px;
    background: rgba(59, 130, 246, 0.10);
    left: -170px;
    top: 190px;
}

.shape-two {
    width: 520px;
    height: 520px;
    background: rgba(99, 102, 241, 0.10);
    right: -210px;
    bottom: -120px;
}

.page-bg-dot {
    position: fixed;
    width: 110px;
    height: 190px;
    background-image: radial-gradient(#b9d4ff 2px, transparent 2px);
    background-size: 22px 22px;
    opacity: 0.8;
    z-index: 1;
}

.dot-left {
    left: 22px;
    top: 90px;
}

.dot-right {
    right: 46px;
    bottom: 90px;
}

@media (max-width: 576px) {
    .register-wrapper {
        padding: 20px 12px;
    }

    .register-card {
        padding: 26px 18px 24px;
        border-radius: 22px;
    }

    .brand-box {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .register-title {
        font-size: 32px;
    }

    .register-subtitle {
        font-size: 15px;
    }

    .login-logo {
        width: 66px;
        height: 66px;
    }
}


/* ===============================
   RESPONSIVE DESIGN
================================ */

@media (min-width: 992px) {
    .register-card {
        max-width: 560px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .register-wrapper {
        min-height: auto;
        padding: 22px 12px;
        align-items: flex-start;
    }

    .register-card {
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 22px;
    }

    .brand-box {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin-bottom: 18px;
    }

    .login-logo {
        width: 62px;
        height: 62px;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-subtitle {
        font-size: 12px;
    }

    .register-title {
        font-size: 30px;
    }

    .register-subtitle {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .input-label {
        font-size: 15px;
    }

    .login-input,
    .select2-container--default .select2-selection--single {
        height: 50px !important;
        font-size: 15px;
    }

        .select2-container--default .select2-selection--single .select2-selection__rendered {
            line-height: 50px !important;
            font-size: 15px;
        }

        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 50px !important;
        }

    .security-box {
        padding: 14px;
        align-items: flex-start;
    }

    .security-icon {
        width: 42px;
        height: 42px;
        font-size: 19px;
        flex: 0 0 42px;
    }

    .register-btn {
        height: 54px;
        font-size: 18px;
    }

    .bg-shape,
    .page-bg-dot {
        display: none;
    }
}

@media (max-width: 420px) {
    .register-wrapper {
        padding: 12px 8px;
    }

    .register-card {
        padding: 22px 14px;
        border-radius: 18px;
    }

    .register-title {
        font-size: 27px;
    }

    .register-subtitle {
        font-size: 14px;
    }

    .input-label {
        font-size: 14px;
        gap: 9px;
    }

        .input-label i {
            font-size: 18px;
            width: 18px;
        }

    .login-input,
    .select2-container--default .select2-selection--single {
        height: 48px !important;
    }

        .select2-container--default .select2-selection--single .select2-selection__rendered {
            line-height: 48px !important;
            padding-left: 12px !important;
            font-size: 14px;
        }

    .country-flag {
        margin-right: 10px;
    }

    .security-box {
        gap: 12px;
    }

        .security-box strong {
            font-size: 14px;
        }

        .security-box p {
            font-size: 12px;
        }

    .register-btn {
        height: 52px;
        font-size: 17px;
    }

    .bottom-links {
        font-size: 14px;
    }
}