@import url('../css/fonts.css');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body{
    background-color: #f5f5f5;
}


.sign-in-page{
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

.sign-in-form-container{
    width: 50%;
    padding: 50px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sign-in-content{
    width: 100%;
    max-width: 550px;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 70px 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.logo{
    text-align: center;
    margin-bottom: 40px;
}

.logo img{
    width: 170px;
}

.sign-in-heading{
    margin-bottom: 30px;
    text-align: center;
}

.sign-in-heading h2{
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.sign-in-heading p{
    color: #666;
    font-size: 0.95em;
}

/* Form Styles */
.sign-in-form{
    width: 100%;
}

.form-group{
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label{
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input{
    padding: 12px 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.85em;
    font-family: "Montserrat", sans-serif;
    transition: all 0.3s ease;
    background-color: #FAFAFA;
    width: 100%;
    height: 55px;
}

.form-group input:focus{
    outline: none;
    border-color: #202020;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input::placeholder{
    color: #9CA3AF;
    font-size: 0.8em;
}

/* Forgot Password Link */
.forgot-password{
    text-align: right;
    margin-top: -10px;
    margin-bottom: 25px;
}

.forgot-password a{
    color: #1E3A8A;
    font-size: 0.85em;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover{
    color: #202020;
    text-decoration: underline;
}

/* Submit Button */
.form-actions{
    margin-top: 30px;
}

.submit-btn{
    width: 100%;
    padding: 14px;
    background-color: #202020;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.submit-btn:hover{
    background-color: #202020;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.submit-btn:active{
    transform: translateY(0);
}

/* Sign Up Link */
.sign-up-link{
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 0.9em;
}

.sign-up-link a{
    color: #1E3A8A;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sign-up-link a:hover{
    color: #202020;
    text-decoration: underline;
}

/* Divider */
.divider{
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #666;
    font-size: 0.85em;
}

.divider::before,
.divider::after{
    content: '';
    flex: 1;
    height: 1px;
    background-color: #D1D5DB;
}

.divider::before{
    margin-right: 15px;
}

.divider::after{
    margin-left: 15px;
}

.google-sign-in-section{
    margin-top: 25px;
}

.google-signin-button{
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    background-color: #ffffff;
    color: #202020 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none !important;
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.google-signin-button:hover{
    background-color: #f7f7f7;
    border-color: #202020;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.google-signin-button:active{
    transform: translateY(0);
}

.google-signin-button .google-icon{
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-sign-in{
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn{
    flex: 1;
    padding: 12px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    color: #333;
}

.social-btn:hover{
    border-color: #202020;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-btn img{
    width: 20px;
    height: 20px;
}

/* Image Container */
.sign-in-image-container{
    width: 50%;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
}

.sign-in-image-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sign-in-form-container{
        padding: 40px 50px;
    }
    
    .sign-in-image-container{
        display: none;
    }
    
    .sign-in-form-container{
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sign-in-page{
        flex-direction: column;
    }
    
    .sign-in-form-container{
        width: 100%;
        padding: 24px 16px;
    }
    
    .sign-in-image-container{
        display: none;
    }

    .sign-in-content{
        padding: 24px 18px;
    }

    .logo{
        margin-bottom: 24px;
    }

    .logo img{
        width: 120px;
    }

    .sign-in-heading h2{
        font-size: 1.6em;
    }

    .form-group input{
        font-size: 16px;
    }

    .forgot-password{
        text-align: left;
        margin-top: 0;
    }

    .form-actions{
        margin-top: 20px;
    }

    .submit-btn{
        padding: 16px;
    }

    .social-sign-in{
        flex-direction: column;
    }
}

/* Google Sign-In Wrapper */
.google-signin-wrapper{
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.google-signin-wrapper .g_id_signin {
    width: 100%;
}

/* Style Google button to match theme */
.g_id_signin[data-type="standard"] {
    width: 100% !important;
}

.g_id_signin button {
    width: 100% !important;
    height: 50px !important;
    border-radius: 8px !important;
    font-size: 1em !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
}