/* File: style.css (di root) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743);
    padding: 32px;
    text-align: center;
    color: white;
}

.auth-header i {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-form {
    padding: 32px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e8e8e;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid #efefef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #0095f6;
    background: white;
}

.input-wrapper input.error {
    border-color: #ff3b30;
}

.toggle-password {
    position: absolute;
    right: 15px;
    left: auto !important;
    cursor: pointer;
}

.error-message {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 6px;
}

.strength-meter {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #efefef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
}

.terms {
    margin: 20px 0;
    display: flex;
    gap: 12px;
}

.terms input {
    width: 18px;
    height: 18px;
}

.terms label {
    font-size: 13px;
    color: #8e8e8e;
}

.terms a {
    color: #0095f6;
    text-decoration: none;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f09433, #e6683c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.auth-footer {
    text-align: center;
    padding: 20px 32px 32px;
    border-top: 1px solid #efefef;
}

.auth-footer a {
    color: #0095f6;
    text-decoration: none;
    font-weight: 600;
}

.alert {
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert.success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.alert.error {
    background: #ffebee;
    border-left: 4px solid #ff3b30;
}

@media (max-width: 480px) {
    .auth-header { padding: 24px; }
    .auth-form { padding: 24px; }
}