
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a2b3c inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}

/* Для Firefox */
input:-moz-autofill {
    background-color: #1a2b3c !important;
    color: #ffffff !important;
}






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

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #0a0c12;
    color: #eef2f5;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0c12;
    z-index: -1;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -20px;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    line-height: 1.5;
    writing-mode: vertical-rl;
    text-orientation: upright;
    opacity: 0.3;
    animation: matrix-fall linear infinite;
    text-shadow: 0 0 8px #00ffff;
    white-space: nowrap;
}

@keyframes matrix-fall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}


.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}


.login-card {
    background: rgba(16, 24, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 40px;
    padding: 50px 40px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}


.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shield {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #00ffff;
    border-radius: 10px;
    transform: rotate(45deg);
    box-shadow: 0 0 15px cyan;
    z-index: 2;
}
.earth {
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, #ffffff, #00ffff);
    border-radius: 50%;
    box-shadow: 0 0 15px cyan;
    animation: rotate 10s linear infinite;
    z-index: 3;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    display: flex;
    align-items: center;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: normal;
    flex-wrap: wrap;
}
.cyber-part {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}
.x-part {
    color: #ffffff;
    font-size: 1.4em;
    margin: 0 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: inline-block;
    vertical-align: middle;
}
.pert-part {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

h2 {
    text-align: center;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

h2 span {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    font-size: 1.2em;
    line-height: 1;
    display: inline-block;
}


.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0f0ff;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 14px;
}

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

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #00ffff;
    font-size: 18px;
    text-shadow: 0 0 8px cyan;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    transition: 0.2s;
    font-family: inherit;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}


.login-btn {
    width: 100%;
    padding: 16px;
    background: #00ffff;
    color: #0a0c12;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    margin-top: 10px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    background: #00e6e6;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    transform: scale(1.02);
}


.consent-text {
    text-align: center;
    margin: 20px 0 15px;
    font-size: clamp(12px, 2.2vw, 14px);
    color: #b0c8d0;
}

.consent-text a {
    color: #00ffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    transition: 0.2s;
}

.consent-text a:hover {
    text-shadow: 0 0 8px cyan;
    border-bottom-color: #00ffff;
}


.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 30px;
    color: #00ffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.back-btn span {
    font-size: 18px;
}


.system-status {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(0, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.system-status span {
    color: #00ffff;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Адаптация */
@media (max-width: 600px) {
    .login-card {
    padding: 30px 20px;
    }
    
    .logo-text {
    font-size: 24px;
    }
    
    .shield {
    width: 40px;
    height: 40px;
    }
    
    .earth {
    width: 24px;
    height: 24px;
    }
    
    h2 {
    font-size: 22px;
    }
    
    h2 span {
    font-size: 26px;
    }

    .consent-text {
    font-size: 13px;
    }
}

@media (max-width: 400px) {
    .login-card {
    padding: 25px 15px;
    }
    
    h2 {
    font-size: 20px;
    }
    
    .login-btn {
    font-size: 16px;
    padding: 14px;
    }

    .consent-text {
    font-size: 12px;
    }
}


.profile-box {
    background: rgba(16, 24, 30, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.profile-box h1 {
    color: #00ffff;
    margin-bottom: 30px;
    font-size: 28px;
}

.profile-box h2 {
    color: #00ffff;
    margin: 30px 0 15px;
    font-size: 20px;
}

.profile-info {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 12px;
}

.profile-info p {
    margin: 10px 0;
}

.groups-list {
    list-style: none;
    margin: 15px 0;
}

.groups-list li {
    padding: 10px;
    margin: 5px 0;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #00ffff;
}

.profile-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.profile-actions a,
.profile-actions button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: 0.2s;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    line-height: normal;
    box-sizing: border-box;
}

.profile-actions a:hover,
.profile-actions button:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.profile-actions a,
.profile-actions button {
    min-width: 140px;          
    text-align: center;       
}


.group-link {
    color: #00ffff;
    text-decoration: none;
    transition: 0.2s;
}

.group-link:hover {
    text-shadow: 0 0 8px cyan;
    text-decoration: underline;
}