:root {
    --bg-body: #0a0a0a;
    --bg-panel: #141414;
    --bg-element: #1f1f1f;
    --accent: #2ea043;
    --accent-light: #3fb954;
    --text-main: #ffffff;
    --text-sec: #b0b0b0;
    --border: #2a2a2a;
    --danger: #ff4444;
}

body { 
    background: linear-gradient(135deg, var(--bg-body) 0%, #1a1a1a 100%);
    color: var(--text-main); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    margin: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.card { 
    background: rgba(20, 20, 20, 0.8); 
    backdrop-filter: blur(20px);
    padding: 40px; 
    border-radius: 24px; 
    width: 100%; 
    max-width: 380px; 
    text-align: center; 
    border: 1px solid var(--border); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
    animation: fadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

h2, h3 { 
    margin-top: 0; 
    margin-bottom: 20px;
    background: linear-gradient(135deg, white 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    letter-spacing: 1px;
}

h3 { font-size: 22px; -webkit-text-fill-color: white; }

input { 
    width: 100%; 
    padding: 16px 20px; 
    margin: 8px 0; 
    background: var(--bg-element); 
    border: 1px solid var(--border); 
    color: white; 
    border-radius: 14px; 
    box-sizing: border-box; 
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus { 
    border-color: var(--accent); 
    box-shadow: 0 0 0 4px rgba(46, 160, 67, 0.1);
    outline: none; 
    background: #252525;
}

button { 
    width: 100%; 
    padding: 16px; 
    margin-top: 20px; 
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border: none; 
    font-weight: bold; 
    font-size: 16px; 
    cursor: pointer; 
    border-radius: 14px; 
    color: white; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 8px 20px rgba(46, 160, 67, 0.3);
}

button:disabled { opacity: 0.7; cursor: wait; }
button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46, 160, 67, 0.5); }

.link-text, a { 
    color: var(--text-sec); 
    text-decoration: none; 
    display: block; 
    margin-top: 20px; 
    font-size: 14px; 
    transition: color 0.2s;
    cursor: pointer;
}
.link-text:hover, a:hover { color: white; }

/* Сообщения */
.feedback-msg { padding: 12px; border-radius: 10px; margin-bottom: 15px; font-size: 14px; display: none; animation: fadeIn 0.3s ease; }
.feedback-error { background: rgba(255, 68, 68, 0.15); border: 1px solid var(--danger); color: #ff6b6b; }
.feedback-success { background: rgba(46, 160, 67, 0.15); border: 1px solid var(--accent); color: var(--accent-light); }

.form-view { display: block; transition: opacity 0.3s ease; }
.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Специфика для Verify Code */
.code-input { text-align: center; letter-spacing: 8px; font-size: 24px; font-family: monospace; font-weight: bold; color: var(--accent-light); }

/* Специфика для Register */
.file-upload { position: relative; display: inline-block; margin-bottom: 20px; }
.file-upload input[type="file"] { display: none; }
.avatar-preview { width: 100px; height: 100px; border-radius: 50%; background: var(--bg-element); border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; margin: 0 auto; transition: all 0.3s; }
.avatar-preview:hover { border-color: var(--accent); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: none; }
.avatar-preview span { font-size: 12px; color: var(--text-sec); padding: 10px; }

/* 404 YoloChat Effect */
.YoloChat-text { font-size: 8rem; font-weight: bold; position: relative; color: var(--text-main); letter-spacing: -5px; margin: 0; }
.YoloChat-text::before, .YoloChat-text::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #050505; }
.YoloChat-text::before { color: #ff00ff; clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); transform: translate(-2px, -2px); animation: YoloChat-anim-1 2s infinite linear alternate-reverse; }
.YoloChat-text::after { color: #00ff00; clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); transform: translate(2px, 2px); animation: YoloChat-anim-2 2s infinite linear alternate-reverse; }
@keyframes YoloChat-anim-1 { 0% { clip-path: inset(20% 0 80% 0); } 20% { clip-path: inset(60% 0 1% 0); } 40% { clip-path: inset(40% 0 50% 0); } 60% { clip-path: inset(80% 0 5% 0); } 80% { clip-path: inset(10% 0 70% 0); } 100% { clip-path: inset(30% 0 50% 0); } }
@keyframes YoloChat-anim-2 { 0% { clip-path: inset(10% 0 60% 0); } 20% { clip-path: inset(30% 0 20% 0); } 40% { clip-path: inset(10% 0 50% 0); } 60% { clip-path: inset(50% 0 30% 0); } 80% { clip-path: inset(15% 0 65% 0); } 100% { clip-path: inset(40% 0 10% 0); } }