* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 560px;
    padding: 32px;
}
h1 {
    margin-top: 0;
    text-align: center;
    color: #2b2b3a;
    font-size: 26px;
}
.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 24px;
    font-size: 14px;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
input[type=password], input[type=text], textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 16px;
    font-family: inherit;
}
textarea { resize: vertical; min-height: 80px; }
.hint {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}
button, .btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover { opacity: 0.9; }
.error {
    background: #ffe5e5;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.success {
    background: #e6ffed;
    color: #1e7e34;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #f1f1f5;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: all .2s;
}
.tab-btn.active {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.result-box {
    background: #f8f7ff;
    border: 1px dashed #b9a6f2;
    border-radius: 12px;
    padding: 20px;
    min-height: 80px;
    font-size: 17px;
    color: #2b2b3a;
    line-height: 1.5;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.top-bar a {
    color: #2575fc;
    font-size: 13px;
    text-decoration: none;
}
.loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #ddd;
    border-top: 3px solid #6a11cb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
