/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar */
.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 50px;
}

.language-switcher{
    display:flex;
    gap:10px;
}

.language-switcher button{
    padding:8px 18px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    background:#2563eb;
    color:white;
    transition:0.3s;
}

.language-switcher button:hover{
    transform:translateY(-2px);
}

.menu-toggle {
    display: none;
}
/* Logo */
.navbar h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Navigation Menu */
.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
}
.navbar a{
    text-decoration: none;
    color: #195fbb;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-style: bold;
    transition: 0.3s;
}

.navbar a:hover {
    color: #170ace;
}



/* Body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
}

/* Hero Section */
.hero {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 60px 10%;

    background: linear-gradient(to right, #195fbb, #0e454d);

    color: white;

    overflow: hidden;
}

/* Left Content */
.hero-content {
    width: 50%;

    animation: slideLeft 1.5s ease;
}

/* Brand Name */
.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

/* Heading */
.hero-content h2 {
    font-size: 42px;
    line-height: 1.3;

    margin-bottom: 20px;
}

/* Paragraph */
.hero-content p {
    font-size: 18px;
    line-height: 1.8;

    margin-bottom: 35px;

    width: 90%;
}

/* Buttons Container */
.buttons {
    display: flex;
    gap: 20px;
}

/* Common Button Style */
.buttons button {
    padding: 14px 32px;

    border: none;
    border-radius: 30px;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

/* Vendor Button */
.vendor-btn {
    background-color: white;
    color: #195fbb;
}

/* Login Button */
.login-btn {
    background-color: transparent;
    color: white;

    border: 2px solid white !important;
}

/* Hover Effects */
.vendor-btn:hover {
    transform: scale(1.08);
    background-color: #d4f3ff;
}

.login-btn:hover {
    transform: scale(1.08);
    background-color: white;
    color: #195fbb;
}

/* Right Image */
.hero-image {
    width: 45%;

    display: flex;
    justify-content: center;

    animation: slideRight 1.5s ease;
}

/* Image */
.hero-image img {
    width: 100%;
    max-width: 500px;

    border-radius: 20px;

    animation: floatImage 3s ease-in-out infinite;
}

/* Slide Left Animation */
@keyframes slideLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide Right Animation */
@keyframes slideRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Floating Animation */
@keyframes floatImage {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Main Container */

.login{
    width:95%;
    max-width:950px;
    background-color:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:40px;
    border-radius:12px;
    box-shadow:0px 0px 15px rgba(0,0,0,0.1);

    margin:30px auto;
}

/* Left Side */

.login-left{
    width: 45%;
    text-align: center;
}

.login-heading h1{
    color: green;
    margin-bottom: 10px;
    font-size: 38px;
}

.login-heading p{
    color: #555;
    margin-bottom: 25px;
}

.login-image img{
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
}

/* Right Side */

.login-form{
    width: 40%;
}

.login-username,
.login-password{
    margin-bottom: 20px;
}

label{
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input{
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

input:focus{
    border-color: green;
}

/* Button */

.login-submit-button{
    width: 100%;
    padding: 12px;
    border: none;
    background-color: green;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.login-submit-button a{
    color: white;
    text-decoration: none;
}

.login-submit-button:hover{
    background-color: darkgreen;
}

/* Links */

.new-user{
    margin-top: 20px;
    text-align: center;
}

.new-user h2{
    font-size: 18px;
    margin-bottom: 8px;
}

.new-user a,
.login-form > a{
    text-decoration: none;
    color: green;
}

.login-form > a{
    display: block;
    text-align: center;
    margin-top: 15px;
}

.password-box{

    position: relative;

    width: 100%;

}

.password-box input{

    width: 100%;

    padding-right: 50px;

}

.password-box span{

    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    cursor: pointer;

    font-size: 20px;

    color: #555;

}

/* Main Container */

.register{
    width:95%;
    max-width:950px;
    background-color:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:40px;
    border-radius:12px;
    box-shadow:0px 0px 15px rgba(0,0,0,0.1);

    margin:30px auto;
}

/* Left Side */

.register-left{
    width: 45%;
    text-align: center;
}

.register-heading h1{
    color: green;
    margin-bottom: 10px;
    font-size: 38px;
}

.register-heading p{
    color: #555;
    margin-bottom: 25px;
}

.register-image img{
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
}

/* Right Side */

.register-form{
    width: 40%;
}

.register-name,
.register-email,
.register-username,
.register-password{
    margin-bottom: 18px;
}

.register-form label{
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.register-form input{
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.register-form input:focus{
    border-color: green;
}

/* Button */

.register-submit-button{
    width: 100%;
    padding: 12px;
    border: none;
    background-color: green;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.register-submit-button:hover{
    background-color: darkgreen;
}

/* Links */

.already-user{
    margin-top: 20px;
    text-align: center;
}

.already-user h2{
    font-size: 18px;
    margin-bottom: 8px;
}

.already-user a{
    text-decoration: none;
    color: green;
}


/* Responsive */
@media (max-width: 900px){

    .navbar{
        flex-direction:column;
        gap:15px;
        padding:20px;
        text-align:center;
    }

    .language-switcher{
        justify-content:center;
        flex-wrap:wrap;
    }

    .language-switcher button{
        padding:8px 14px;
        font-size:13px;
    }

    .hero{
        flex-direction:column;
        text-align:center;
        padding:40px 20px;
    }

    .hero-content{
        width:100%;
    }

    .hero-image{
        width:100%;
        margin-top:30px;
    }

    .hero-content h1{
        font-size:40px;
    }

    .hero-content h2{
        font-size:28px;
    }

    .hero-content p{
        width:100%;
        font-size:16px;
    }

    .buttons{
        justify-content:center;
        flex-wrap:wrap;
    }

    .buttons button{
        width:200px;
    }

    .login,
    .register{
        flex-direction:column;
        width:95%;
        padding:20px;
    }

    .login-left,
    .login-form,
    .register-left,
    .register-form{
        width:100%;
    }

    .login-left,
    .register-left{
        margin-bottom:25px;
    }

    .login-image img,
    .register-image img{
        max-width:250px;
    }

    .login-heading h1,
    .register-heading h1{
        font-size:28px;
    }
}

@media (max-width:480px){

    .navbar h1{
        font-size:22px;
    }

    .hero-content h1{
        font-size:30px;
    }

    .hero-content h2{
        font-size:22px;
    }

    .hero-content p{
        font-size:14px;
    }

    .buttons{
        flex-direction:column;
        align-items:center;
    }

    .buttons button{
        width:100%;
        max-width:250px;
    }

    .language-switcher{
        width:100%;
    }

    .language-switcher button{
        flex:1;
    }
}
