/* Base */
*,
a,
button,
input,
select,
h1,
h2,
h3,
h4,
h5 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  text-decoration: none;
  background: none;
  -webkit-font-smoothing: antialiased;
  font-family: "Inter", "Segoe UI", sans-serif;
}

menu,
ol,
ul { list-style-type: none; }

body {
  background-color: #ffffff;
  color: #101f3c;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Colors */
:root {
  --navy-blue: #101f3c;
  --orange:   #ff6b35;
  --panel-gray: #f7f8fb;
  --white: #ffffff;
  --gray-100: #f7fafc;
  --gray-300: #e2e8f0;
  --border-gray: #dedede;
  --blue-info-bg: #eff6ff;
  --blue-info-border: #bfdbfe;
  --blue-info-icon: #2563eb;
  --blue-info-title: #1e3a8a;
  --blue-info-text: #1d4ed8;
  --blue-link-base: #4c51bf;
  --blue-link-hover: #3b3f8f;
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Layout */
.container { display: flex; flex-direction: column; flex: 1; }

.header {
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border-gray);
  display: flex; align-items: center; justify-content: flex-start;
}

.logo-section .logo-image { height: 50px; width: auto; }

/* Login */
.login-container {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: #ffffff;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  width: 100%;
  min-height: 550px;
}

/* Left image */
.login-image { position: relative; }

.image-cover {
  width: 100%; height: 100%; object-fit: cover;
}

.image-overlay {
  position: absolute; inset: 0;
  background: rgba(16, 31, 60, 0.5);
}

/* Right form */
.login-form {
  background: var(--panel-gray);       
  display: flex; align-items: stretch; justify-content: center;
}

.form-inner {
  padding: 3rem 2.5rem;
  width: 100%;
  display: flex; flex-direction: column; justify-content: center;
}

.form-header { margin-bottom: 2rem; }

.form-title {
  font-size: 1.8rem; font-weight: 700; color: var(--orange);
}

.form-subtitle { font-size: 1rem; color: #555; margin-top: 0.25rem; }

/* Card */
.login-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.card-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  background: var(--orange); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.card-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }

.card-subtitle { font-size: 0.95rem; color: #374151; margin-bottom: 1.5rem; }

/* Google-style button */
.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: #444;
  border: 1px solid var(--gray-300);
  border-radius: 1.5rem;
  padding: 0.75rem;
  width: 75%;              
  margin: 0 auto;          
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}


.google-login-btn:hover {
  background: var(--gray-300);
  transform: translateY(-1px);
}

.google-icon { width: 20px; height: 20px; margin-right: 0.75rem; }
.google-text { line-height: 1; }

/* Keep me signed in  */
.remember-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0.75rem 0 0.25rem 0;
  justify-content: center;
}

.remember-row input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--navy-blue);
}

.remember-row label { font-size: 0.95rem; color: #2d3748; cursor: pointer; }

.remember-hint {
  text-align: center; font-size: 0.85rem; color: #5a677a; margin: 0 0 0.25rem 0;
}

/* Support */
.support-link { margin-top: 1.5rem; text-align: center; }

.support-link a {
  color: var(--blue-link-base); font-size: 0.9rem; transition: color 0.2s ease;
}

.support-link a:hover { color: var(--blue-link-hover); }

/* Security note */
.security-notice {
  display: flex; align-items: flex-start;
  margin-top: 1.25rem;
  background: var(--blue-info-bg);
  border: 1px solid var(--blue-info-border);
  border-radius: 0.75rem;
  padding: 1rem; gap: 0.75rem;
}

.security-icon {
  width: 24px; height: 24px; color: var(--blue-info-icon); flex-shrink: 0;
}

.security-title { font-size: 1rem; font-weight: 600; color: var(--blue-info-title); }
.security-text  { font-size: 0.9rem; color: var(--blue-info-text); }

/* Footer */
.footer {
  text-align: center; padding: 1rem; font-size: 0.85rem;
  color: #777; border-top: 1px solid var(--border-gray);
}
.footer .heart { color: var(--orange); }

/* Responsive */
@media (max-width: 991px) {
  .login-grid { grid-template-columns: 1fr; max-width: 600px; }
  .login-image { display: none; }
  .form-inner { padding: 2rem; }
}

@media (max-width: 575px) {
  .form-title { font-size: 1.5rem; }
  .login-card { padding: 1.5rem; }
  .google-login-btn { padding: 0.65rem; }
  .support-link a { font-size: 0.85rem; }
  .security-title { font-size: 0.9rem; }
  .security-text { font-size: 0.8rem; }
}

@media (min-width: 1400px) {
  .login-grid { max-width: 1200px; min-height: 650px; }
  .form-title { font-size: 2rem; }
  .login-card { padding: 2.5rem; }
}

/* A11y & UX */
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

a:focus-visible, button:focus-visible, .google-login-btn:focus-visible {
  outline: 2px solid #3b82f6; outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.google-login-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08) inset;
}

.google-login-btn[disabled], .google-login-btn:disabled {
  opacity: 0.6; cursor: not-allowed; filter: grayscale(20%);
}

a { cursor: pointer; }
