/* -------------------------------------------------
   AKPrinterHub_Clone – Main Stylesheet (style.css)
   ------------------------------------------------- */

/* -------------------------------------------------
   Google Font Import
   ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Nunito:wght@300;400;600&display=swap');

/* -------------------------------------------------
   CSS Custom Properties – Blue & White Theme
   ------------------------------------------------- */
:root {
  /* Primary palette */
  --color-primary: #0066ff;          /* Vivid Azure */
  --color-primary-dark: #004fbf;     /* Deep Azure */
  --color-primary-light: #e6f2ff;    /* Soft Azure background */

  /* Accent & neutrals */
  --color-accent: #00c8ff;           /* Aqua accent */
  --color-bg: #ffffff;               /* White page background */
  --color-surface: #f9fbff;          /* Light surface */
  --color-text-primary: #212529;    /* Dark text */
  --color-text-muted: #6c757d;      /* Muted text */
  --color-border: #d0e4ff;          /* Light border */

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Layout */
  --max-width: 420px;
  --radius: 8px;
  --transition-speed: 0.25s;
}

/* -------------------------------------------------
   Global Reset (reset.css is loaded before this file)
   ------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 100%; /* 16px */
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* -------------------------------------------------
   Base Styles
   ------------------------------------------------- */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* -------------------------------------------------
   Container – centers the form
   ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  background-color: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  animation: fadeIn 0.6s ease-out forwards;
}

/* -------------------------------------------------
   Header – logo & title
   ------------------------------------------------- */
.header {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  position: relative;
}
.header::before {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: url('../img/logo.png') no-repeat center / contain;
  background-color: #fff;
  border-radius: 50%;
  border: 4px solid var(--color-primary);
}

/* Title */
.header h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
}

/* -------------------------------------------------
   Form Styles
   ------------------------------------------------- */
form {
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Input groups */
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #fff;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
}

/* Remember me & recovery link container */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.form-options a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}
.form-options a:hover {
  color: var(--color-primary-dark);
}

/* Submit button */
.btn-primary {
  padding: 0.85rem 1rem;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,102,255,0.2);
}
.btn-primary:active {
  transform: translateY(0);
}

/* Divider for alternative actions */
.divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--color-border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

/* Social login buttons (optional) */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: #fff;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}
.social-btn:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* -------------------------------------------------
   Footer – small print
   ------------------------------------------------- */
.footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding: 1rem;
}

/* -------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------- */
@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }
  .container {
    border-radius: 0;
    box-shadow: none;
  }
}

/* -------------------------------------------------
   Animations
   ------------------------------------------------- */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------
   Utility Classes
   ------------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.hidden { display: none !important; }

/* -------------------------------------------------
   End of style.css
   ------------------------------------------------- */