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

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

.login-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.login-header {
    background: white;
    color: #222;
    padding: 32px 30px 24px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.login-logo {
    max-width: 200px;
    width: 80%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 18px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.login-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 5px; color: #222; }
.login-header p  { font-size: 14px; color: #777; }

.login-body { padding: 36px 30px; }

.step { display: none; }
.step.active { display: block; }

.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 7px; color: #333; font-weight: 500; font-size: 14px; }
.form-group input {
    width: 100%; padding: 13px 15px;
    border: 2px solid #e1e5e9; border-radius: 10px;
    font-size: 16px; transition: all .25s; background: #f8f9fa;
}
.form-group input:focus {
    outline: none; border-color: #667eea; background: white;
    box-shadow: 0 0 0 3px rgba(102,126,234,.1);
}

.email-display {
    font-size: 14px; color: #555; margin-bottom: 20px;
    padding: 10px 14px; background: #f0f0ff; border-radius: 8px;
    display: flex; align-items: center; justify-content: space-between;
}
.email-display button {
    background: none; border: none; color: #667eea;
    font-size: 13px; cursor: pointer; font-weight: 500;
}

.btn-primary {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; border: none; border-radius: 50px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all .25s; letter-spacing: .5px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102,126,234,.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.alert {
    padding: 13px 15px; margin-bottom: 18px;
    border-radius: 10px; font-size: 14px; font-weight: 500;
}
.alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.otp-input {
    text-align: center; font-size: 28px; font-weight: 700;
    letter-spacing: 12px; color: #667eea;
}

.resend-link {
    text-align: center; margin-top: 14px; font-size: 13px; color: #888;
}
.resend-link a { color: #667eea; cursor: pointer; text-decoration: none; font-weight: 500; }
.resend-link a:hover { text-decoration: underline; }

.divider {
    display: flex; align-items: center;
    margin: 28px 0; color: #999; font-size: 14px;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: #e1e5e9;
}
.divider span { padding: 0 14px; }

.social-buttons { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
    width: 100%; padding: 12px 18px;
    border: 2px solid #e1e5e9; border-radius: 10px;
    background: white; color: #333; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all .25s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.social-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.08); border-color: #ccc; }
.social-btn.facebook { color: #1877f2; border-color: #1877f2; }
.social-btn.facebook:hover { background: #1877f2; color: white; }
.social-btn.apple { color: #000; border-color: #000; }
.social-btn.apple:hover { background: #000; color: white; }

.login-footer {
    padding: 18px 30px; background: #f8f9fa;
    text-align: center; color: #888; font-size: 13px;
    border-top: 1px solid #e1e5e9;
}

@media (max-width: 480px) {
    .login-header, .login-body { padding-left: 20px; padding-right: 20px; }
}
