﻿:root {
    --primary-color: #0383f5bf;
    --secondary-color: #078fffd6;
    --accent-color: #0383f5;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: var(--dark-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.register-container {
    display: flex;
    min-height: calc(100vh - 72px);
}

.register-form-container {
    flex: 1;
    background-color: white;
    overflow-y: auto;
}

.register-section {
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.register-form {
    width: 100%;
    max-width: 460px;
    padding-bottom: 1rem;
}

.promo-container {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    padding-top: 1.5rem;
    min-height: calc(100vh - 72px);
}

.promo-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/themeskyslogin.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.18;
    z-index: 0;
}

.promo-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.4;
}

.form-floating {
    margin-bottom: 1.25rem;
}

.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    height: auto;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(3, 131, 245, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    width: 100%;
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.divider span {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: white;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.social-btn:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--dark-color);
}

.register-link {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.promo-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    margin-top: 0.25rem;
}

.promo-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    opacity: 0.92;
}

.tech-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.tech-icons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.tech-icon {
    width: 48px;
    min-width: 48px;
    color: #0f172a;
}

.tech-icon i,
.tech-logo {
    font-size: 1.5rem;
    width: 24px;
    height: 24px;
}

.tech-icon span {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    color: inherit;
    font-size: 0.75rem;
}

.tech-icon:hover span {
    opacity: 1;
    visibility: visible;
}

.tech-react {
    color: #61dafb;
}

.tech-angular {
    color: #dd0031;
}

.tech-vue {
    color: #4fc08d;
}

.tech-js {
    color: #f7df1e;
}

.tech-bootstrap {
    color: #7952b3;
}

.tech-dotnet {
    color: #512bd4;
}

.tech-node {
    color: #339933;
}

.tech-postman {
    color: #ff6c37;
}

.audience-title {
    margin-bottom: 0.75rem;
}

.audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.audience-tag {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.feature-item {
    display: block;
}

.feature-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.3rem;
    color: white;
}

.feature-content {
    flex: 1;
    padding-top: 0.25rem;
}

.feature-title {
    margin: 0;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: white;
}

.feature-description {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    padding-left: 3.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.promo-metrics {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.95;
}

.form-check {
    margin-bottom: 1.25rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.trust-list {
    display: grid;
    gap: 0.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
}

.trust-item i {
    color: #16a34a;
}

.reg-type-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.reg-type-btn {
    flex: 1;
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--dark-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.reg-type-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.reg-type-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    z-index: 1;
    position: relative;
}

.btn-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

.btn-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 0.15rem;
    display: block;
}

.reg-type-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(3, 131, 245, 0.25);
}

.reg-type-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 30px rgba(3, 131, 245, 0.35);
}

.reg-type-btn.active::before {
    left: 0;
}

.reg-type-btn.active i {
    color: white;
}

.reg-type-btn.active .btn-subtitle {
    opacity: 0.9;
}

.reg-form-panel {
    display: none;
}

.reg-form-panel.active {
    display: block;
}

.password-strength {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 999px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.password-strength-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.password-strength-bar.strength-weak {
    width: 34%;
    background-color: #ef4444;
}

.password-strength-bar.strength-medium {
    width: 68%;
    background-color: #f59e0b;
}

.password-strength-bar.strength-strong {
    width: 100%;
    background-color: #22c55e;
}

.form-helper {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.register-mode-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.setup-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.setup-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(3, 131, 245, 0.12);
    transform: translateY(-2px);
}

.setup-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(3, 131, 245, 0.25);
}

.setup-icon i {
    font-size: 1.5rem;
    color: white;
}

.setup-content {
    flex: 1;
}

.setup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
}

.setup-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.setup-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.password-field-wrapper {
    position: relative;
    display: block;
}

    .password-field-wrapper .form-control {
        padding-right: 2.75rem;
    }

.password-toggle-icon {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0.25rem !important;
    left: auto !important;
    margin: auto 0 !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1rem;
}

    .password-toggle-icon:hover {
        color: var(--primary-color);
        background: transparent !important;
    }

    .password-toggle-icon:focus,
    .password-toggle-icon:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: 4px;
        background: transparent !important;
    }

@media (max-width: 991px) {
    .register-container {
        flex-direction: column;
    }

    .register-form-container,
    .promo-container {
        width: 100%;
        min-height: auto;
    }

    .register-section {
        padding: 2rem 1.5rem;
    }

    .promo-container {
        padding: 2rem 1.5rem;
    }

    .promo-content {
        max-width: 100%;
    }

    .promo-container::before {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .feature-icon i {
        font-size: 1.2rem;
    }

    .feature-description {
        padding-left: 3.5rem;
    }
}

@media (max-width: 576px) {
    .register-section,
    .promo-container {
        padding: 1.25rem 1rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .promo-title {
        font-size: 1.5rem;
    }

    .promo-subtitle {
        font-size: 0.95rem;
    }

    .social-login {
        flex-direction: column;
    }

    .feature-list {
        gap: 1.25rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
    }

    .feature-icon i {
        font-size: 1.1rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 14px;
        padding-left: 3.25rem;
    }

    .audience-tags {
        gap: 0.4rem 0.6rem;
    }

    .audience-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

@media (max-width: 400px) {
    .feature-header {
        gap: 0.5rem;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .feature-description {
        padding-left: 2.875rem;
    }
}