/* /path/to/your/css/auth.css */

:root {
    --primary: #2563eb; /* Blue-600 */
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #22c55e;
    --error: #ef4444;
}
body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--light);
}

/* Stack header + container vertically and center the block */
.auth-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Make the header align to the same width as the card */
.auth-header {
  width: 100%;
  max-width: 1200px;   /* same as .signup-container */
  margin: 0 auto 12px; /* a little space above the card */
  padding: 0 16px;
  text-align: center;
}

/* Link aesthetics */
.auth-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.auth-header a:hover { text-decoration: underline; }


.signup-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
}
.signup-illustration {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}
.signup-illustration::before,
.signup-illustration::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.signup-illustration::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}
.signup-illustration::after {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -80px;
}
.signup-illustration h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
    z-index: 2;
}
.signup-illustration p {
    font-size: 1.1rem;
    max-width: 400px;
    opacity: 0.95;
    z-index: 2;
}
.signup-form-container {
    flex: 1;
    padding: 50px 40px;
    background: #f9fafb;
    color: #1e293b;
}
.signup-card {
    max-width: 500px;
    margin: 0 auto;
}
.signup-card h2 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0f172a;
    text-align: center;
}
.form-control {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    color: #0f172a;
}
.form-control::placeholder {
    color: #64748b;
}
.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    z-index: 10;
}
.input-group .form-control {
    padding-left: 45px;
}
.password-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 8px; 
}
.password-wrapper .input-group {
    flex: 1;
    margin-bottom: 0;
}
.password-toggle {
    margin-left: 12px;
    cursor: pointer;
    color: #475569;
    font-size: 1.1rem;
}
.password-strength {
    height: 2px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.password-strength-meter {
    height: 100%;
    width: 0;
    background: var(--error);
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}
.password-strength-text {
    font-size: 0.85rem;
    margin-top: 8px;
    color: #64748b;
    margin-bottom: 25px;
    text-align: left;
}
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}
.btn-primary:active {
    transform: translateY(0);
}
.alert {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    border: none;
    font-weight: 500;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border-left: 4px solid var(--error);
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--success);
}
.signin-link {
    text-align: center;
    margin-top: 25px;
    color: #475569;
}
.signin-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.signin-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
@media (max-width: 992px) {
    .signup-container {
        flex-direction: column;
    }
    .signup-illustration {
        padding: 30px 20px;
    }
    .signup-form-container {
        padding: 40px 30px;
    }
}