:root {
    --primary: #0b6cf0;
    --primary-dark: #0a5cd6;
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #0b1721;
    --muted: #65748b;
    --error: #e53e3e;
    --success: #38a169;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    position:relative;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--card);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(11, 24, 33, 0.08);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    padding-left:83px;
}

.logo h1 {
    color: var(--primary);
    margin: 0 0 8px 0;
    font-size: 24px;
}

.logo p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

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

label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--muted);
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e6eef7;
    background: #fbfdff;
    font-size: 14px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #e6eef7;
    color: var(--muted);
}

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

.divider {
    text-align: center;
    margin: 20px 0;
    color: var(--muted);
    font-size: 14px;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e6eef7;
    z-index: 1;
}

.divider span {
    background: var(--card);
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fed7d7;
    color: var(--error);
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: var(--success);
    border: 1px solid #9ae6b4;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e6eef7;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

.top-logo{
    position: absolute;
    display: flex;
    background: url('../img/maesai_logo_250.png') no-repeat center center;
    background-size: cover;
    top: 40px;
    left: 44px;
    width: 100px;
    height: 100px;
}

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

.hidden {
    display: none;
}
