@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* General Reset */
* {
    font-family: "Work Sans", serif;
}

:root{
    /* Text */
    --links: #3B3C4A;
    --search: #A1A1AA;
    --topics: #FFFFFF;
    --primary:#181A2A;
    --technology: #4B6BFB;
    --secondary:#97989F;
    --about: #696A75;

    /* Background */
    --search-bg: #52525b14;
    --blog-bg: #FFFFFF;
    --blog-tag: #4b6bfb10;
    --border-line-blog: #E8E8EA;
    --border-line-view: #696A75;
}

/* Centering the form */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(b);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main{
    width:100%;
    display:flex;
    flex-direction: column;
    align-items: center;
    padding:0px 10px;
}

/* Form Container */
.login-container {
    background:var(--blog-bg);
    border:1px solid var(--border-line-blog);
    padding: 30px;
    border-radius: 10px;
    /* box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); */
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Logo */
.logo {
    font-size: 30px;
    margin-bottom: 10px;
}

/* Form Styling */
h2 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: bold;
}

label {
    display: block;
    text-align: left;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
    color:var(--primary);
}

input {
    width: 100%;
    padding: 7px;
    margin-top: 5px;
    border:none;
    background: var(--search-bg);
    border-radius: 5px;
    font-size: 14px;
    color:var(--primary);
}

input::placeholder{
    color:var(--search);
}

input:focus{
    border:none;
    outline: none;
}

.options {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
}

.checkbox{
    display:flex;
    gap:0.3rem;
    align-items: center;
    white-space: nowrap;
}

.checkbox input {
    appearance: none; /* Removes default checkbox */
    width: 4px; /* Reduce width */
    height: 4px; /* Reduce height */
    border: 1px solid var(--border-line-blog); /* Border color */
    border-radius: 4px; /* Optional: Rounded corners */
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    position: relative;
}

/* Checkbox checked state */
.checkbox input:checked {
    background-color: var(--primary); /* Change background when checked */
    border:1px solid var(--primary);
}

/* Add checkmark */
.checkbox input:checked::before {
    content: "✔"; 
    font-size: 12px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.checkbox span{
    color:var(--primary);
}

.options a {
    color: var(--links);
    text-decoration: none;
    margin-left: auto;
    transition: 0.3s ease-in-out;
}

.options a:hover{
    color: var(--secondary);
}

/* Sign In Button */
.sign-in-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--blog-bg);
    border: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s ease-in-out;
}

.sign-in-btn:hover{
    background:var(--secondary);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--secondary);
    margin: 15px 0;
}

.divider span {
    flex: 1;
    height: 1px;
    background: #ddd;
    margin: 0 10px;
}

/* Social Login Buttons */
.social-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.google-btn{
    flex: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    color:var(--primary);
    transition: 0.3s ease-in-out;
}

.google-btn img, .github-btn img {
    width: 18px;
    margin-right: 8px;
}

.google-btn:hover{
    background:var(--border-line-blog);
}

/* Signup Link */
.account {
    font-size: 13px;
    color: var(--links);
    display:flex;
    gap:0.2rem;
    justify-content: center;
}

.account a{
    color: var(--links);
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.account a:hover{
    color: var(--secondary);
}

#forgot{
    display:none;
}

#create-account{
    display:none;
}

.alert-bottom-right {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    max-width: 400px;
    background:var(--blog-bg);
    border:1px solid var(--border-line-blog);
    border-radius: 10px;
}