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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.login-card {
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    padding: 40px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 64px;
    height: 64px;
    background: #2c3e50;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.logo svg {
    width: 32px;
    height: 32px;
}

h1 {
    font-size: 1.75em;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #757575;
    font-size: 0.95em;
    font-weight: 400;
}

.form-section {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 24px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    background: #2c3e50;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875em;
    font-weight: 600;
    margin-right: 12px;
}

.section-header h3 {
    font-weight: 500;
    color: #424242;
    font-size: 1em;
    margin: 0;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #424242;
    font-weight: 500;
    font-size: 0.9em;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-size: 0.95em;
    transition: border-color 0.2s;
    background: white;
    color: #424242;
}

.form-input:focus {
    outline: none;
    border-color: #2c3e50;
}

.form-input::placeholder {
    color: #9e9e9e;
}

.help-text {
    display: block;
    margin-top: 6px;
    font-size: 0.8em;
    color: #757575;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 2px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    opacity: 0.9;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-success {
    background: #424242;
    color: white;
}

.loader {
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    border-top: 2px solid white;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn:disabled .loader {
    display: inline-block;
}

.btn:disabled .btn-text {
    display: none;
}

.alert {
    border-radius: 2px;
    border: 1px solid;
    padding: 12px;
    margin-top: 16px;
    font-size: 0.875em;
}

.alert-success {
    background: #f1f8f4;
    border-color: #c8e6c9;
    color: #2e7d32;
}

.alert-error {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
}

@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .logo {
        width: 56px;
        height: 56px;
    }
}
