* {
    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%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.logo-container {
    text-align: center;
    margin: 0 0 30px 0;
    padding: 20px;
    background: #fbfbfb;
	border: #667eea 1px solid;
    border-radius: 50px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Reset code input styling */
input[type="text"]#resetCode {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px;
    width: 100%;
    max-width: 440px;
}

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

.logo-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.logo-section p {
    color: #86868b;
    font-size: 16px;
}

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

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

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e5e7;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:disabled {
    background: #d2d2d7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 8px;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.admin-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.forgot-section {
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid #efefef;
}

.forgot-section h2 {
    margin-bottom: 16px;
    font-size: 24px;
    color: #1d1d1f;
    text-align: center;
}

.input-note {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.password-strength {
    width: 100%;
    height: 6px;
    background: #f3f4f6;
    border-radius: 999px;
    margin: 8px 0 4px;
    overflow: hidden;
}

.password-strength .strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-bar.weak {
    width: 33%;
    background: #f97316;
}

.strength-bar.medium {
    width: 66%;
    background: #facc15;
}

.strength-bar.strong {
    width: 100%;
    background: #22c55e;
}

.auth-form {
    display: none;
    animation: fadeIn 0.2s ease;
}

.auth-form.active {
    display: block;
}

.tabs {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.tab {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e5e7;
    border-radius: 8px;
    background: #f4f4f8;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.tab:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

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