@import url("fonts.css");
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(160deg, #f8f0e5 0%, #f0e4d4 50%, #e8d9c4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #2c1e14;
}
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 12px 40px rgba(60,40,20,0.1);
}
.logo { font-size: 48px; text-align: center; margin-bottom: 8px; }
h1 { text-align: center; font-size: 22px; margin-bottom: 4px; }
.subtitle { text-align: center; color: #8b7355; font-size: 14px; margin-bottom: 24px; }

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: #f5f0e8;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.tab input { display: none; }
.tab:has(input:checked) {
    background: #fff5eb;
    border-color: var(--almas, #c47a2c);
    color: var(--almas, #c47a2c);
}

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    background: #fafafa;
    outline: none;
    font-family: inherit;
    transition: border 0.2s;
}
.form-group input:focus {
    border-color: var(--almas, #c47a2c);
    background: #fff;
}

.btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--almas, #c47a2c), var(--almas-2, #e09540));
    color: #fff;
    box-shadow: 0 4px 14px rgba(196,122,44,0.3);
}
.btn-primary:active { transform: scale(0.98); }
.btn-block { width: 100%; margin-top: 8px; }

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 16px;
    font-weight: 600;
}
.alert-error { background: #ffebee; color: #c62828; }
.alert-success { background: #e8f5e9; color: #2e7d32; }

.footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: #888;
}
.footer-link a { color: var(--almas, #c47a2c); font-weight: 600; text-decoration: none; }
.demo-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #aaa;
}
.demo-hint code {
    background: #f5f0e8;
    padding: 2px 6px;
    border-radius: 4px;
    color: #666;
}
@media (max-width: 400px) {
    .auth-card { padding: 24px 18px; }
}

.btn-primary {
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:active {
    transform: scale(0.97);
}
.auth-card {
    animation: authIn 0.4s ease;
}
@keyframes authIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.brand-line {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #a08b70;
    font-weight: 600;
}

body { font-family: var(--font), Tahoma, sans-serif !important; }
.auth-card h1 { font-weight: 800 !important; font-size: 24px !important; }
.btn-primary { font-weight: 800 !important; font-size: 16px !important; }
.subtitle { font-weight: 500 !important; }
.auth-card {
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(60,40,20,0.12) !important;
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
}
.btn-primary {
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--almas, #c47a2c), var(--almas-2, #e8a04a)) !important;
  font-weight: 800 !important;
}
.auth-card {
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(60,40,20,0.12) !important;
}
.btn-primary {
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--almas, #c47a2c), var(--almas-2, #e8a04a)) !important;
  font-weight: 800 !important;
}

html[data-theme="dark"] body, body[data-theme="dark"] {
  background: #0c0c0e !important; color: #f2f2f2 !important;
}
html[data-theme="dark"] .auth-card, body[data-theme="dark"] .auth-card {
  background: #1c1a1e !important; border: 1px solid rgba(255,70,70,.25) !important; color: #f5f0eb !important;
}
html[data-theme="dark"] .auth-card h1, body[data-theme="dark"] .auth-card h1 { color: #fff !important; }
html[data-theme="dark"] input, body[data-theme="dark"] input {
  background: #141218 !important; border-color: rgba(255,70,70,.3) !important; color: #fff !important;
}
html[data-theme="dark"] .brand-line, body[data-theme="dark"] .brand-line { color: #9a9088 !important; }

.auth-form select, .auth-card select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  background: #1c1a1e !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,80,80,.35) !important;
  -webkit-text-fill-color: #fff !important;
}
.auth-form select option {
  background: #1c1a1e;
  color: #fff;
}
html[data-theme="light"] .auth-form select,
html[data-theme="light"] .auth-card select {
  background: #fff !important;
  color: #1a1208 !important;
  -webkit-text-fill-color: #1a1208 !important;
  border: 1px solid #ccc !important;
}

.btn.btn-loading,button.btn-loading,button.btn-primary.btn-loading{
  pointer-events:none!important;opacity:.75!important;position:relative;
}
.btn.btn-loading::after,button.btn-loading::after{
  content:"";display:inline-block;width:1em;height:1em;margin-inline-start:.45em;
  border:2px solid currentColor;border-right-color:transparent;border-radius:50%;
  vertical-align:-.12em;animation:almasSpin .65s linear infinite;
}
@keyframes almasSpin{to{transform:rotate(360deg)}}
