﻿/* ====== Base Styles ====== */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f4f4f4;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.login-form {
    background: #fff;
    padding: 40px 80px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 700px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.login-logo {
    width: 120px;
    margin: 0 auto 20px 0;
    display: block;
}

.login-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
    background: none;
    border: none;
}

.form-check {
    display: flex;
    align-items: center;
    font-size: 14px;
    justify-content: flex-start;
    align-items: flex-start;
}

.form-check-label {
    margin-left: 8px;
}

.login-btn {
    width: 100%;
    background-color: #FFAB26;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    color: black;
    font-size: 16px;
    margin-top: 10px;
}

    .login-btn:hover {
        background-color: #ff8c00; /* Slightly darker orange */
        color: white;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
        transition: all 0.3s ease;
    }


.text-separator {
    text-align: center;
    margin: 20px 0 10px;
    color: #999;
}

.social-btn {
    width: 100%;
    border: 1px solid #ccc;
    background: white;
    color: #333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    font-size: 15px;
}

    .social-btn.google:hover {
        background-color: #db4437;
        color: white;
        border-color: #db4437;
    }

    .social-btn.facebook:hover {
        background-color: #3b5998;
        color: white;
        border-color: #3b5998;
    }


.signup-link {
    margin-top: 20px;
    text-align: center;
}

.signup-text {
    color: #FFA500;
    font-weight: 600;
    text-decoration: none;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}


/* ====== Responsive Breakpoints ====== */

/* Small Tablets (≤768px) */
@media (max-width: 768px) {
    .login-form {
        padding: 30px;
        width: 90%;
    }

    .login-title {
        font-size: 22px;
    }

    .form-control {
        font-size: 15px;
    }

    .login-btn, .social-btn {
        font-size: 15px;
    }
}

/* Phones (≤480px) */
@media (max-width: 480px) {
    .login-form {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .login-logo {
        width: 100px;
    }

    .login-title {
        font-size: 20px;
    }

    .login-btn, .social-btn {
        padding: 10px;
        font-size: 14px;
    }

    .form-check {
        font-size: 13px;
    }
}

.input-error {
    border: 1px solid #e74c3c !important;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.8) !important;
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}