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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 440px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: #0066cc;
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.header-success {
    background: #28a745;
}

.success-icon {
    margin-bottom: 15px;
}

.success-icon svg {
    color: white;
}

.content {
    padding: 30px;
}

.description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

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

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

.btn-primary {
    background: #0066cc;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: #0055aa;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: #f0f2f5;
    color: #333;
}

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

.message {
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid #e1e5eb;
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.back-link {
    margin-top: 25px;
    text-align: center;
}

.back-link a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

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

.password-strength {
    margin-bottom: 20px;
}

.strength-bar {
    height: 4px;
    background: #e1e5eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 2px;
}

.strength-fill.weak {
    background: #dc3545;
}

.strength-fill.medium {
    background: #ffc107;
}

.strength-fill.strong {
    background: #28a745;
}

#strengthText {
    font-size: 12px;
    color: #666;
}

.success-message {
    text-align: center;
    margin-bottom: 30px;
}

.success-message p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.next-steps {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.next-steps h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.next-steps ol {
    margin-left: 20px;
    color: #666;
}

.next-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.help-text {
    text-align: center;
    color: #888;
    font-size: 14px;
}

footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

@media (max-width: 480px) {
    .header {
        padding: 25px 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .content {
        padding: 25px 20px;
    }

    .btn {
        padding: 12px 20px;
    }
}
