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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #f1f5f9;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f1f5f9;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 32px;
    font-size: 14px;
}

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

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #cbd5e1;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 14px;
    background: #0f172a;
    color: #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

input.input-error {
    border-color: #ef4444;
}

input.input-success {
    border-color: #22c55e;
}

input.input-disabled {
    background: #1e293b;
    color: #64748b;
    cursor: not-allowed;
    border-color: #334155;
}

.error-msg {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
}

.success-msg-inline {
    display: block;
    color: #22c55e;
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

.hint {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}

.password-requirements {
    list-style: none;
    margin-top: 8px;
    padding: 0;
}

.password-requirements li {
    font-size: 12px;
    color: #64748b;
    padding: 2px 0;
    padding-left: 20px;
    position: relative;
}

.password-requirements li::before {
    content: '\25CB';
    position: absolute;
    left: 0;
    color: #64748b;
}

.password-requirements li.met {
    color: #22c55e;
}

.password-requirements li.met::before {
    content: '\25CF';
    color: #22c55e;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
    width: 100%;
    padding: 14px;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: #475569;
    cursor: not-allowed;
}

.btn-secondary {
    background: #334155;
    color: #e2e8f0;
    width: 100%;
    padding: 14px;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-group .btn {
    flex: 1;
}

/* Switch link */
.switch-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #94a3b8;
}

.switch-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.switch-link a:hover {
    text-decoration: underline;
}

/* Home header */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.home-header h1 {
    margin-bottom: 0;
}

/* Profile fields */
.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #334155;
}

.profile-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.profile-value {
    font-size: 14px;
    color: #f1f5f9;
    font-weight: 400;
}

/* Success message */
.success-msg {
    text-align: center;
    padding: 20px 0;
}

.success-msg h2 {
    color: #22c55e;
    font-size: 22px;
    margin-bottom: 8px;
}

.success-msg p {
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    .card {
        padding: 28px 20px;
    }
    .btn-group {
        flex-direction: column;
    }
}
