* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 50%, #1a2332 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(70, 90, 126, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.info-section {
    flex: 1;
    max-width: 600px;
    color: white;
    padding-right: 80px;
    position: relative;
    z-index: 10;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.brand-logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
    padding: 10px;
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
}

.brand-tagline {
    font-size: 22px;
    color: #94a3b8;
    margin-bottom: 60px;
    line-height: 1.5;
    font-weight: 500;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    transform: translateX(-30px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: rgba(59, 89, 152, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 89, 152, 0.3);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: #60a5fa;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.6;
}

.info-footer {
    padding-top: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.info-footer p {
    font-size: 16px;
    color: #cbd5e1;
    font-weight: 600;
}

.login-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 10;
}

.login-box {
    background: rgba(45, 55, 72, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 45px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(30px);
}

.logo-section {
    text-align: center;
    margin-bottom: 45px;
}

.logo-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 24px;
    background: white;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
    padding: 15px;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper.focused {
    filter: brightness(1.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
    z-index: 2;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 16px 18px 16px 52px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.6);
    color: #ffffff;
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group input:focus {
    outline: none;
    border-color: #3b5998;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 89, 152, 0.15);
}

.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-group input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(30, 41, 59, 0.4);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
    z-index: 2;
}

.toggle-password:hover {
    opacity: 0.7;
}

.toggle-password:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.eye-icon {
    width: 22px;
    height: 22px;
    color: #64748b;
}

.field-error {
    color: #fca5a5;
    font-size: 13px;
    margin-top: -4px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b5998;
}

.checkbox-wrapper input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.checkbox-label {
    font-size: 14px;
    color: #94a3b8;
    user-select: none;
}

.forgot-password {
    font-size: 14px;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #93c5fd;
}

.submit-btn {
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, #3b5998 0%, #4a6fa5 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    box-shadow: 0 4px 16px rgba(59, 89, 152, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 89, 152, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .loader-wrapper {
    opacity: 1;
}

.loader-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.divider span {
    padding: 0 16px;
    font-weight: 500;
}

.telegram-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}

.telegram-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
}

.telegram-login-btn:active {
    transform: translateY(0);
}

.telegram-login-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.signup-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #94a3b8;
}

.signup-link a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.signup-link a:hover {
    color: #93c5fd;
}

@media (max-width: 1200px) {
    body {
        padding: 40px;
    }

    .info-section {
        padding-right: 40px;
    }

    .brand-name {
        font-size: 40px;
    }

    .brand-tagline {
        font-size: 18px;
    }
}

@media (max-width: 968px) {
    body {
        flex-direction: column;
        justify-content: center;
        padding: 30px 20px;
        gap: 40px;
    }

    .info-section {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .brand-header {
        justify-content: center;
    }

    .features-list {
        max-width: 600px;
        margin: 0 auto 40px;
    }

    .feature-item {
        text-align: left;
    }

    .login-container {
        max-width: 100%;
        width: 100%;
    }

    .login-box {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
        gap: 30px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 30px;
    }

    .brand-logo {
        width: 55px;
        height: 55px;
    }

    .brand-name {
        font-size: 32px;
    }

    .brand-tagline {
        font-size: 16px;
        margin-bottom: 35px;
    }

    .features-list {
        gap: 24px;
        margin-bottom: 35px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-content h3 {
        font-size: 16px;
    }

    .feature-content p {
        font-size: 14px;
    }

    .login-box {
        padding: 35px 25px;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .logo-text {
        font-size: 28px;
    }

    .logo-subtitle {
        font-size: 14px;
    }

    .login-form {
        gap: 18px;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 14px 16px 14px 48px;
        font-size: 16px;
    }

    .input-icon {
        left: 16px;
        width: 18px;
        height: 18px;
    }

    .toggle-password {
        right: 12px;
        padding: 8px;
    }

    .eye-icon {
        width: 20px;
        height: 20px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .submit-btn {
        padding: 15px;
        font-size: 16px;
    }

    .telegram-login-btn {
        padding: 15px;
        font-size: 15px;
        gap: 10px;
    }

    .info-footer {
        padding-top: 30px;
    }

    .info-footer p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 12px;
        padding-top: 20px;
        gap: 25px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
    }

    .brand-name {
        font-size: 28px;
    }

    .brand-tagline {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .features-list {
        gap: 20px;
        margin-bottom: 30px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-content h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .feature-content p {
        font-size: 13px;
    }

    .login-box {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .logo-section {
        margin-bottom: 35px;
    }

    .logo-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 18px;
    }

    .logo-text {
        font-size: 26px;
    }

    .logo-subtitle {
        font-size: 13px;
    }

    .login-form {
        gap: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 13px 14px 13px 44px;
        font-size: 16px;
        border-radius: 12px;
    }

    .input-icon {
        left: 14px;
        width: 17px;
        height: 17px;
    }

    .toggle-password {
        right: 10px;
        padding: 6px;
    }

    .eye-icon {
        width: 19px;
        height: 19px;
    }

    .checkbox-wrapper input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .forgot-password {
        font-size: 13px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 15px;
        border-radius: 12px;
    }

    .telegram-login-btn {
        padding: 14px;
        font-size: 14px;
        border-radius: 12px;
    }

    .telegram-login-btn svg {
        width: 22px;
        height: 22px;
    }

    .divider {
        font-size: 13px;
        margin: 18px 0;
    }

    .signup-link {
        font-size: 13px;
        margin-top: 20px;
    }

    .error-message {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 10px;
    }

    .field-error {
        font-size: 12px;
    }

    .info-footer {
        padding-top: 25px;
    }

    .info-footer p {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    body {
        padding: 12px 10px;
        padding-top: 15px;
    }

    .brand-logo {
        width: 45px;
        height: 45px;
    }

    .brand-name {
        font-size: 26px;
    }

    .brand-tagline {
        font-size: 14px;
    }

    .login-box {
        padding: 25px 18px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .logo-text {
        font-size: 24px;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 12px 12px 12px 42px;
        font-size: 16px;
    }

    .input-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .submit-btn,
    .telegram-login-btn {
        padding: 13px;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px 8px;
        padding-top: 12px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-tagline {
        font-size: 13px;
    }

    .login-box {
        padding: 22px 15px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-subtitle {
        font-size: 12px;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 11px 10px 11px 40px;
    }
}

@media (min-height: 800px) and (max-width: 768px) {
    body {
        justify-content: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    body {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .brand-tagline {
        margin-bottom: 25px;
    }

    .features-list {
        margin-bottom: 25px;
    }

    .logo-section {
        margin-bottom: 30px;
    }
}

@media (max-height: 600px) and (max-width: 768px) {
    .info-section {
        display: none;
    }

    body {
        justify-content: center;
    }
}