:root {
  --mail-bg-0: #11110f;
  --mail-bg-1: #161614;
  --mail-panel: rgba(24, 23, 20, 0.72);
  --mail-text-1: #ece6da;
  --mail-text-2: #c7beae;
  --mail-text-3: #978d7c;
  --mail-amber-rgb: 215, 179, 106;

  --bg: var(--mail-bg-0);
  --panel: var(--mail-panel);
  --panel-alt: rgba(30, 28, 24, 0.78);
  --ink: var(--mail-text-1);
  --muted: var(--mail-text-3);
  --muted-rgb: 151, 141, 124;
  --blue-900: var(--mail-text-1);
  --blue-900-rgb: 236, 230, 218;
  --blue-700: #d8c5a1;
  --blue-700-rgb: 216, 197, 161;
  --blue-600: #d7b36a;
  --blue-600-rgb: var(--mail-amber-rgb);
  --blue-500: #be9858;
  --blue-500-rgb: 190, 152, 88;
  --green-600: #d7b36a;
  --green-600-rgb: var(--mail-amber-rgb);
  --green-500: #be9858;
  --green-500-rgb: 190, 152, 88;
  --border: rgba(214, 188, 140, 0.14);
  --border-strong: rgba(214, 188, 140, 0.24);
  --focus: rgba(215, 179, 106, 0.12);
}

body {
  background:
    radial-gradient(circle at 72% 10%, rgba(215, 179, 106, 0.1), transparent 24rem),
    radial-gradient(circle at 18% 0%, rgba(255, 236, 190, 0.05), transparent 18rem),
    linear-gradient(180deg, #151412 0%, #11110f 38%, #0f0f0e 100%);
  color: var(--mail-text-2);
}

body::before {
  background:
    radial-gradient(68rem 42rem at 50% 50%, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.32) 100%);
}

body::after {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: soft-light;
}

.site-header {
  background: rgba(17, 17, 15, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #0f0f0e;
}

.footer-inner {
  color: var(--mail-text-3);
}

.footer-inner a {
  color: var(--mail-text-1);
}

.footer-inner a:hover {
  color: #efd7ab;
}

.login-container {
	      display: flex;
	      align-items: center;
	      justify-content: center;
	      min-height: calc(100vh - 160px);
	      padding: 40px 0;
	    }

	    .login-card {
	      width: 100%;
	      max-width: 420px;
	      background: linear-gradient(180deg, rgba(30, 28, 24, 0.9), rgba(22, 21, 18, 0.82));
		      border: 1px solid rgba(var(--mail-amber-rgb), 0.18);
	      border-radius: var(--radius);
	      padding: 40px;
	      box-shadow:
	        inset 0 1px 0 rgba(255,255,255,0.03),
	        0 16px 38px rgba(0,0,0,0.28);
	      backdrop-filter: blur(10px);
	    }

.login-header {
      text-align: center;
      margin-bottom: 32px;
    }

	    .login-logo {
	      height: 60px;
	      width: auto;
		      filter: drop-shadow(0 4px 12px rgba(var(--mail-amber-rgb), 0.12));
	    }

	    .login-header h1 {
	      font-size: 28px;
	      margin: 16px 0 8px 0;
	      color: var(--ink);
	    }

	    .login-header p {
	      color: rgba(var(--muted-rgb), 0.94);
	      font-size: 15px;
	      margin: 0;
	    }

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

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 650;
      color: var(--ink);
      font-size: 14px;
    }

	    .form-group input {
	      width: 100%;
	      padding: 12px 14px;
		      border: 1px solid rgba(var(--mail-amber-rgb), 0.14);
	      border-radius: 10px;
	      background: rgba(255,255,255,0.03);
	      color: var(--ink);
	      font-size: 15px;
	      transition: all 0.2s ease;
	      box-sizing: border-box;
	    }

	    .form-group input:focus {
	      outline: none;
		      border-color: rgba(var(--mail-amber-rgb), 0.4);
		      box-shadow: 0 0 0 4px rgba(var(--mail-amber-rgb), 0.1);
	    }

    .form-group input::placeholder {
      color: var(--muted);
    }

	    .form-group input[disabled] {
	      background: rgba(255,255,255,0.02);
	      color: rgba(var(--muted-rgb), 0.78);
	      cursor: not-allowed;
		      border-color: rgba(var(--mail-amber-rgb), 0.1);
	      box-shadow: none;
	    }

	    .target-select {
	      width: 100%;
	      padding: 12px 14px;
		      border: 1px solid rgba(var(--mail-amber-rgb), 0.14);
	      border-radius: 10px;
	      background: rgba(255,255,255,0.03);
	      color: var(--ink);
	      font-size: 15px;
	      box-sizing: border-box;
	    }

	    .target-select:focus {
	      outline: none;
		      border-color: rgba(var(--mail-amber-rgb), 0.4);
		      box-shadow: 0 0 0 4px rgba(var(--mail-amber-rgb), 0.1);
	    }

	    .login-submit {
	      width: 100%;
	      padding: 12px 16px;
	      margin-top: 24px;
	      background: linear-gradient(180deg, #dfbd79 0%, #be9858 100%);
	      color: #171411;
	      border: 1px solid rgba(255, 231, 190, 0.18);
	      border-radius: 10px;
	      font-weight: 750;
	      font-size: 15px;
	      cursor: pointer;
	      transition: all 0.2s ease;
	      box-shadow:
	        0 10px 28px rgba(191, 152, 88, 0.24),
	        inset 0 1px 0 rgba(255,255,255,0.18);
	    }

	    .login-submit:hover:not(:disabled) {
	      background: linear-gradient(180deg, #e5c788 0%, #c79d5b 100%);
	      box-shadow:
	        0 12px 32px rgba(191, 152, 88, 0.28),
	        0 0 0 4px rgba(var(--mail-amber-rgb), 0.08);
	    }

	    .login-submit:focus {
	      outline: none;
	      box-shadow:
	        0 12px 32px rgba(191, 152, 88, 0.28),
	        0 0 0 4px rgba(var(--mail-amber-rgb), 0.08);
	    }

    .login-submit:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

	    .error-message {
      display: none;
      padding: 12px 14px;
      margin-bottom: 20px;
      background: rgba(220, 38, 38, 0.08);
      border: 1px solid rgba(220, 38, 38, 0.2);
	      color: #f2c1b5;
      border-radius: 10px;
      font-size: 14px;
      animation: slideDown 0.3s ease;
    }

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

	    .success-message {
      display: none;
      padding: 12px 14px;
      margin-bottom: 20px;
      background: rgba(34, 197, 94, 0.08);
      border: 1px solid rgba(34, 197, 94, 0.2);
	      color: #d6d3a4;
      border-radius: 10px;
      font-size: 14px;
      animation: slideDown 0.3s ease;
    }

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

    .loading-spinner {
      display: none;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin-right: 8px;
    }

    .login-submit.loading {
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    .login-submit.loading .loading-spinner {
      display: inline-block;
    }

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

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

	    .login-footer {
	      margin-top: 24px;
	      padding-top: 20px;
	      border-top: 1px solid rgba(var(--mail-amber-rgb), 0.14);
	      text-align: center;
	      color: rgba(var(--muted-rgb), 0.94);
	      font-size: 13px;
	    }

	    .login-footer a {
	      color: #d8c5a1;
	      text-decoration: underline;
	      text-decoration-color: rgba(216,197,161,0.28);
	    }

	    .login-footer a:hover {
	      color: #efd7ab;
	      text-decoration-color: rgba(239,215,171,0.56);
	    }

    @media (max-width: 576px) {
      .login-card {
        padding: 28px;
      }

      .login-header h1 {
        font-size: 24px;
      }

      .login-container {
        min-height: auto;
        padding: 24px 0;
      }
    }
