* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Rubik', sans-serif;
    background: linear-gradient(135deg, rgba(76, 79, 163, 1), rgba(27, 36, 92, 0.83)),
        url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1600') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.reg-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    padding: 28px 32px 24px;
    position: relative
}

.reg-close {
    position: absolute;
    right: 14px;
    top: 12px;
    background: none;
    border: 0;
    font-size: 30px;
    color: #444;
    cursor: pointer
}

.reg-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px
}

.reg-logos .brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 100%
}

.reg-logos .brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain
}

.reg-logos .brand-logo-main {
    max-height: 52px
}

.reg-logos .brand-logo-qualcomm {
    height: 22px
}

.reg-logos .brand-logo-flag {
    max-height: 44px
}

.reg-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 6px 0 18px
}

.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px
}

.reg-input {
    width: 100%;
    height: 44px;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    font-family: inherit
}

.reg-input::placeholder {
    color: #9aa3b2
}

.reg-input:focus {
    outline: none;
    border-color: #3b6fe0
}

.password-field {
    position: relative
}

.password-field .reg-input {
    padding-right: 46px
}

.toggle-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1
}

.toggle-eye:focus {
    outline: none;
    color: #3b6fe0
}

.toggle-eye i {
    display: inline-block;
    transform-origin: center;
    line-height: 1;
    pointer-events: none
}

.toggle-eye.eye-open i {
    animation: eyeOpen 0.28s ease
}

.toggle-eye.eye-close i {
    animation: eyeClose 0.28s ease
}

@keyframes eyeOpen {
    0% {
        transform: scaleY(0.2) scaleX(0.9);
        opacity: 0.45;
    }

    60% {
        transform: scaleY(1.18) scaleX(1.04);
        opacity: 1;
    }

    100% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
    }
}

@keyframes eyeClose {
    0% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
    }

    45% {
        transform: scaleY(0.18) scaleX(0.96);
        opacity: 0.55;
    }

    100% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
    }
}

.reg-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0 12px
}

.social-btn {
    height: 44px;
    border: 1px solid #d8dde6;
    background: #fff;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    font-family: inherit
}

.social-btn .fb {
    color: #1877f2;
    font-size: 18px
}

.social-btn .gg-i {
    font-weight: 700;
    font-size: 16px;
    background: conic-gradient(from -45deg, #ea4335, #fbbc05, #34a853, #4285f4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.check-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 6px 0;
    font-size: 13px;
    color: #3a3f52;
    line-height: 1.5
}

.check-row input {
    margin-top: 3px
}

.check-row a {
    color: #1c37bf;
    font-weight: 600;
    text-decoration: underline
}

.btn-submit {
    width: 100%;
    height: 44px;
    border: 0;
    background: #fcc305;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 14px;
    font-family: inherit
}

.reg-footer {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    color: #3a3f52
}

.reg-footer a {
    color: #1c37bf;
    font-weight: 600;
    text-decoration: none
}

@media (max-width:520px) {

    .reg-grid,
    .reg-social {
        grid-template-columns: 1fr
    }

    .reg-card {
        padding: 38px 18px 22px;
    }

    .reg-logos .brand-logos {
        gap: 8px;
        flex-wrap: wrap;
    }

    .reg-logos .brand-logo-main {
        max-height: 36px;
    }

    .reg-logos .brand-logo-qualcomm {
        height: 16px;
    }

    .reg-logos .brand-logo-flag {
        max-height: 32px;
    }
}

.error-msg {
    color: #d93025;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.reg-input.error {
    border-color: #d93025 !important;
    background-color: #fff8f7 !important;
}

.reg-input.error:focus {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.1) !important;
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-top: 0;
    color: #1a1a1a;
    font-size: 20px;
}

.modal-content p {
    color: #4b5563;
    line-height: 1.5;
    margin: 15px 0 25px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    border: none;
    transition: background 0.2s;
}

.btn-primary {
    background: #3b6fe0;
    color: #fff;
}

.btn-primary:hover {
    background: #2557c9;
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-secondary:hover {
    background: #e5e7eb;
}
