/* SokoHub Authentication Stylesheet */

/* 1. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Flex Navigation */
.header {
    background-color: #32cd32;
    padding: 10px 0;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    color: #d8860b;
}

.logo-img {
    height: 45px;
}

#buttons {
    display: flex;
    gap: 10px;
}

#up, #in {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

#up { background-color: #d8860b; color: white; }
#in { background-color: white; color: #32cd32; }

#up:hover, #in:hover { transform: scale(1.1); }


/* 2. Common Layout Wrapper (Flexbox) */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* Adjusts for Navbar height */
    padding: 20px;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensures branding corners follow border-radius */
}

/* 3. Branding Section (Left Side) */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #32cd32 0%, #28a428 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    text-align: center;
}
.login-branding img{
    height: 11vh;
}

.login-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    object-fit: cover;
}

.login-branding h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.login-branding p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 4. Form Section (Right Side) */
.login-form-box {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-box h2 {
    color: #222;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.subtitle, .sub-text {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* 5. Form Elements */
.input-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input {
    padding: 12px 15px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #32cd32;
}

/* 6. Buttons */
.auth-btn {
    width: 100%;
    padding: 14px;
    background-color: #d8860b; /* SokoHub Orange */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    background-color: #b67208;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216, 134, 11, 0.3);
}

/* 7. Footer & Links */
.footer-text, .switch-page {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.footer-text a, .switch-page a {
    color: #32cd32;
    text-decoration: none;
    font-weight: bold;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* 8. Responsive Design (Mobile) */
@media (max-width: 800px) {
    .login-container {
        flex-direction: column; /* Stacks branding on top of form */
        max-width: 450px;
    }

    .login-branding {
        padding: 30px;
    }

    .login-form-box {
        padding: 30px;
    }

    .login-branding h1 {
        font-size: 1.6rem;
    }
}