/* ---------------------------
   GLOBAL LOGIN PAGE STYLES
   Inspired by Inspiration_CSS
---------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #333;
  display: flex;
  min-height: 100vh;
}

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

/* -------- Branding Section -------- */
.branding {
  flex: 1;
  background: linear-gradient(135deg, #0a192f, #112240);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.branding::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 20%, transparent 70%);
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.1); opacity: 0.8; }
}

.branding-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
  text-align: left;
}

.branding h1 {
  font-size: 48px;
  margin: 0;
  line-height: 1.2;
}

.branding h1 span {
  color: #4ade80;
}

.branding p {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: #f1f1f1;
}

/* -------- Login Section -------- */
.form-section {
  flex: 2;
  padding: 60px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #f8fafc;
}

header h2 {
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 28px;
}

header h3 {
  color: #444;
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 25px;
}

/* -------- Login Card -------- */
.formDesign {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 35px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.7s ease both;
  text-align: center;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#login-options p {
  color: #555;
}

/* -------- Login Buttons -------- */
.login-provider {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.login-provider:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.google-login {
  background: linear-gradient(90deg, #ffffff, #f5f5f5);
  color: #333;
  border: 1px solid #ddd;
}

.microsoft-login {
  background: linear-gradient(90deg, #0078d4, #005a9e);
  color: #fff;
}

.provider-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

/* -------- Error Message -------- */
.error-box {
  background-color: #ffe5e5;
  border-left: 4px solid #e74c3c;
  padding: 12px 14px;
  border-radius: 8px;
  color: #b71c1c;
  font-size: 0.95rem;
}

/* -------- Terms / Privacy -------- */
a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------- Responsiveness -------- */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .branding {
    display: none;
  }

  .form-section {
    padding: 30px 20px;
  }

  .formDesign {
    padding: 25px 20px;
  }

  header h2 {
    font-size: 24px;
  }
}
