/* General layout */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    /* background: linear-gradient(to bottom right, #eef2ff, #f3e8ff); */

    height: 100vh;
    overflow: hidden; /* prevent scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main container holding form and branding side by side */
.auth-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 24px 20px;
    border-radius: 12px;
    /* box-shadow: 0 8px 25px rgba(0,0,0,0.1); */

    width: 90vw;          /* reduced from 100vw */
    height: 90vh;         /* new: shrink height */
    max-width: 900px;     /* optional: smaller on large screens */
    max-height: 600px;    /* new: cap the max height */
   
}

/* Left side: form */
.auth-left {
    flex: 1 1 50%;
    max-width: 50%;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Form headers */
.auth-left h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #9333ea;
    margin-bottom: 0;
    text-align: center;
    width: 90%;
}

.auth-left p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 24px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

/* Form styling */
.auth-left form {
    width: 80%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Inputs */
.auth-left input[type="text"],
.auth-left input[type="email"],
.auth-left input[type="password"] {
    width: 90%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #d3d0d0;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.auth-left input[type="text"]:focus,
.auth-left input[type="email"]:focus,
.auth-left input[type="password"]:focus {
    border-color: #111;
    outline: none;
    box-shadow: 0 0 6px rgba(107,33,168,0.25);
}

/* Checkbox + Forgot Password wrapper */
.options-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #444;
    gap: 8px;
}

.options-row label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.options-row input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}


/* Submit button (Login/Signup) */
.auth-left button[type="submit"] {
    width: 100%;
    background: linear-gradient(to right, #9333ea, #6366f1);
    color: white;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 24px;
}

.auth-left button[type="submit"]:hover {
    background: linear-gradient(90deg, #7c2dde 0%, #a855f7 100%);
}

/* Signup/Login prompt line */
.signup-row {
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-size: 0.85rem;
    color: #444;
    margin-top: 20px;
    margin-bottom: 24px;
}

.signup-row span {
    margin-right: 6px;
}

.signup-row a {
    font-weight: 600;
    color: blue;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    
}

.signup-row a:hover {
    color: #9333ea;
    text-decoration: underline;
}

/* Social login buttons container */
.social-login-buttons {
    width: 100%;
    max-width: 400px;
    display: flex;
    gap: 12px;
}

/* Social buttons style */
.btn-social {
    flex: 1;
    background: white;
    border-radius: 5px;
    padding: 5px 5px;
    font-weight: 600;
    font-size: 0.95rem;
    border:1px solid transparent;

    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    color: #111;
}

/* Make sure icons render */
.btn-social i {
    font-size: 1.5rem;
    display: inline-block;
}

/* Apple button */
.btn-social.apple {
    border: 2px solid #000;
    color: #000;
}

.btn-social.apple:hover {
    background: #000;
    color: white;
}

/* Right side branding */
.auth-right {
    flex: 1 1 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 30px;
    text-align: center;
    color: #443c6e;
}

.auth-right h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.auth-right p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4b277d;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    body {
        overflow: auto;
        padding: 20px 0;
    }

    .auth-container {
        flex-direction: column;
        padding: 24px 16px;
        max-width: 500px;
        width: 95vw;
        margin: 40px auto;
    }

    .auth-left, .auth-right {
        max-width: 100%;
        flex: none;
        padding: 0;
        margin-bottom: 30px;
    }

    .auth-left form, .signup-row, .social-login-buttons {
        max-width: 100%;
    }
}


/* Replace the previous Google button style */
.btn-social.google {
    position: relative;
    z-index: 0;
    
    font-weight: 600;
    border: 2px solid #000;
    background: white;
    
    cursor: pointer;
    overflow: hidden;
    padding-right: 5px;
}

/* .btn-social.google::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    padding: 2px; //border thickness
    border-radius: inherit;
    background: conic-gradient(
        from 90deg,
        #4285F4,
        #34A853,
        #FBBC05,
        #EA4335,
        #4285F4
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.btn-social.google:hover::before {
    filter: brightness(1.1);
} */

/* Google icon (SVG-based multi-color) */

.google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;  /* Adjust as needed */
  
}
.google-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-social.google:hover {
  background-color: #000;
  color: #fff;
  
}

.btn-social.google:hover .google-icon svg path {
  fill: #fff !important;
}

.auth-logo {
    max-width: 450px;     /* Adjust width as needed */
    width: 100%;
    height: auto;
    /* margin-bottom: 12px; */
    object-fit: contain;
}
