/* ====== General Page Layout ====== */
body {
    background: linear-gradient(120deg, #e6f0ff 0%, #f8f9fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    background: #fff;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.08), 0 1.5px 4px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 370px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 28px;
    color: #0066ff;
    font-size: 28px;
    font-weight: 700;
}

/* ====== Form Input Styling ====== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #212529;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #0066ff;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #0066ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #0052cc;
}

/* ====== Links and Switch Option ====== */
.switch-link {
    margin-top: 18px;
    color: #6c757d;
    font-size: 15px;
}

.switch-link a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.switch-link a:hover {
    color: #0052cc;
}

.back-home {
    position: absolute;
    top: 28px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4f8ff;
    color: #0066ff;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.06);
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.back-home i {
    font-size: 16px;
}

.back-home:hover {
    background: #e6f0ff;
    color: #0052cc;
}

/* ====== Social Login Section ====== */
.social-signup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.social-button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Google Sign-In iframe styles */
.g_id_signin {
    width: 100% !important;
    display: flex;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

#g_id_onload {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure iframe scales properly */
iframe[src*="accounts.google.com"] {
    width: 100% !important;
    height: 44px !important;
    border: none;
}

/* LinkedIn Button (styled like Google) */
.linkedin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 80.5%;
    height: 40px;

    background-color: #ffffff;
    color: #3c4043;

    font-size: 14px;
    font-weight: 500;

    border: 1px solid #dadce0;
    border-radius: 4px;

    text-decoration: none;
    cursor: pointer;

    box-shadow: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.linkedin-btn:hover {
    background-color: #f7f8f8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.linkedin-btn i {
    font-size: 18px;
    color: #0077b5;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
    margin: 0 10px;
}

/* ====== Responsive Design ====== */
@media (max-width: 500px) {
    .back-home {
        top: 12px;
        left: 10px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .login-container {
        padding: 30px 20px;
    }

    .linkedin-btn {
        font-size: 15px;
    }

    .login-btn {
        font-size: 17px;
    }
}
