/* PROJECT UNITE - Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0078FF;
    --text-dark: #1E1E2E;
    --text-gray: #2C2C2C;
    --text-light: #8A96A3;
    --white: #FFFFFF;
    --background-light: #F9FAFB;
    --border-color: #8A96A3;
}

/* Slightly reduce global scale: set base font-size to 15px (was 16px) */
html { font-size: 14px; }

body {
    font-family: 'Poppins', -apple-system, Roboto, Helvetica, sans-serif;
    background: var(--white);
    color: var(--text-gray);
    line-height: 1.5;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body:not(.purpose-body) {
    height: 100vh;
    overflow-y: auto;
}

/* Background Design */
.background-design {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.bg-logo-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 120%;
    height: auto;
    opacity: 0.1;
    z-index: -1;
}

.bg-logo-2 {
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 140%;
    height: auto;
    opacity: 0.1;
    z-index: -1;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5rem; /* reduced padding */
    background: transparent;
    position: relative;
    z-index: 10;
}

.profile-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn:hover {
    color: var(--primary-blue);
    background: rgba(0, 120, 255, 0.1);
}

.nav-links {
    display: flex;
    gap: 4rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.15rem; /* reduced font size */
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Landing Page */
.landing-container {
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    position: relative;
}

.landing-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.welcome-text {
    font-size: 1.5rem; /* reduced font size */
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 0.8rem; /* reduced margin */
}

.main-title {
    font-size: clamp(3.5rem, 10vw, 9rem); /* reduced font size */
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 1.5rem; /* reduced margin */
}

.subtitle {
    font-size: 2rem; 
    font-weight: 500;
    color: var(--text-gray);
    letter-spacing: 0.03em;
    margin-bottom: 3rem; 
    text-transform: uppercase;
}

.cta-button {
    display: inline-flex;
    padding: 0.6rem 1.7rem; 
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    font-size: 1.15rem; 
    font-weight: 500;
    border-radius: 5rem; 
    border: 3px solid var(--border-color); 
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background: #0066dd;
    transform: translateY(-2px);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.login-card {
    display: flex;
    background: var(--primary-blue);
    border-radius: 3rem; /* reduced border radius */
    border: 4px solid var(--border-color); /* reduced border width */
    overflow: hidden;
    max-width: 65rem; /* reduced max width */
    width: 100%;
    min-height: 33rem; /* reduced min height */
    position: relative;
}

.login-left {
    flex: 1;
    padding: 2.5rem; /* reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.login-right {
    flex: 1;
    background: var(--white);
    border-radius: 2.7rem; /* reduced border radius */
    margin: 1rem 1rem 1rem 0; /* reduced margin */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem; /* reduced padding */
}

.login-welcome {
    font-size: 0.85rem; /* reduced font size */
    font-weight: 500;
    margin-bottom: 0.4rem; /* reduced margin */
}

.login-title {
    font-size: 3.2rem; /* reduced font size */
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.4rem; /* reduced margin */
}

.login-subtitle {
    font-size: 0.5rem; /* reduced font size */
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.5rem; /* reduced margin */
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* reduced gap */
    width: 100%;
    max-width: 24rem; /* reduced max width */
}

.form-input {
    padding: 0.5rem 0.8rem; /* reduced padding */
    border: 2px solid var(--border-color); /* reduced border width */
    border-radius: 3rem; /* reduced border radius */
    background: var(--background-light);
    font-size: 0.85rem; /* reduced font size */
    font-family: 'Poppins', sans-serif;
    color: var(--text-gray);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.15s ease;
    width: 100%;
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 6px 18px rgba(0,120,255,0.06);
}

/* Modal form buttons slightly smaller to match reduced field sizes */
.login-button {
    padding: 0.45rem 1rem; /* reduced padding */
    background: var(--background-light);
    color: var(--primary-blue);
    border: none;
    border-radius: 1.5rem; /* reduced border radius */
    font-size: 0.85rem; /* reduced font size */
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: 0.6rem; /* reduced margin */
}

.login-button:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Form layout inside modal */
.form_container .login_form,
.form_container .signup_form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
}

.form_container .login_form h3,
.form_container .signup_form h3 {
    margin-bottom: 0.4rem;
}

.form_container .form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Ensure both forms align heights on large screens */
@media (min-width: 800px) {
    .form_container > div > form {
        min-height: 260px;
    }
}

.logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Dashboard */
.dashboard-container {
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 4rem;
    max-width: 90rem;
    width: 100%;
}

.dashboard-card {
    background: var(--white);
    border: 5px solid var(--primary-blue);
    border-radius: 2.2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: clamp(20rem, 40vh, 31rem);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 120, 255, 0.1);
}

.card-icon {
    width: clamp(12rem, 20vw, 18rem);
    height: clamp(12rem, 20vw, 18rem);
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.card-button {
    display: inline-flex;
    padding: 0.7rem 2rem;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 500;
    border-radius: 6rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.card-button:hover {
    background: #0066dd;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar {
        padding: 2rem 4rem;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .login-card {
        max-width: 60rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    .welcome-text {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .login-card {
        flex-direction: column;
        margin: 1rem;
    }
    
    .login-right {
        margin: 0 1.3rem 1.3rem 1.3rem;
    }
    
    .login-title {
        font-size: 2.5rem;
    }
    
    .dashboard-card {
        padding: 2rem;
        min-height: 25rem;
    }
    
    .card-icon {
        width: 12rem;
        height: 12rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
        justify-content: center;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .welcome-text {
        font-size: 1.2rem;
    }
    
    .login-left {
        padding: 2rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
        min-height: 20rem;
    }
    
    .card-icon {
        width: 10rem;
        height: 10rem;
    }
}

/* Figma Login Design */
.figma-login-container {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8.3rem 2rem 2rem;
    position: relative;
    overflow-x: hidden;
}

.figma-login-card {
    display: flex;
    background: var(--primary-blue);
    border-radius: 3rem; /* reduced border radius */
    border: 4px solid var(--border-color); /* reduced border width */
    overflow: hidden;
    max-width: 65rem; /* reduced max width */
    width: 100%;
    min-height: 33rem; /* reduced min height */
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 120, 255, 0.15);
}

.figma-login-left {
    flex: 1;
    padding: 4.5rem 2rem 3rem; /* reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--white);
    position: relative;
}

.figma-login-right {
    flex: 1;
    background: var(--white);
    border-radius: 2.7rem; /* reduced border radius */
    margin: 1rem 1rem 1rem 0; /* reduced margin */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem; /* reduced padding */
    min-width: 0;
}

.figma-login-welcome {
    font-size: 0.8rem; /* reduced font size */
    font-weight: 500;
    margin-bottom: 0rem;
    position: absolute;
    top: 1.5rem; /* reduced top */
    left: 2rem; /* reduced left */
}

.figma-login-title {
    font-size: 3rem; /* reduced font size */
    font-weight: 800;
    letter-spacing: -0.15rem;
    margin-bottom: 0.4rem; /* reduced margin */
    line-height: 0.9;
}

.figma-login-subtitle {
    font-size: 0.5rem; /* reduced font size */
    font-weight: 500;
    letter-spacing: 0.017rem;
    text-transform: uppercase;
    margin-bottom: 2rem; /* reduced margin */
    opacity: 0.9;
    max-width: 21.4rem;
}

.figma-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* reduced gap */
    width: 100%;
    max-width: 40rem; /* increased max width to allow longer inputs */
}

.figma-input-wrapper {
    position: relative;
    width: 100%;
}

.figma-form-input {
    padding: 0.8rem 2.4rem; /* slightly increased padding for visual balance */
    border: 3px solid var(--border-color);
    border-radius: 5rem;
    background: var(--background-light);
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-light);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.figma-form-input::placeholder {
    color: var(--text-light);
    font-weight: 500;
}

.figma-form-input:focus {
    border-color: var(--white);
    color: var(--text-gray);
    background: var(--white);
    transform: scale(1.01);
}



.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.8rem;
}

.figma-login-button {
    padding: 0.6rem 1.5rem; /* reduced padding */
    background: var(--background-light);
    color: var(--primary-blue);
    border: none;
    border-radius: 5rem; /* reduced border radius */
    font-size: 1.1rem; /* reduced font size */
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    min-width: 7.6rem;
    text-decoration: none !important;
}

.figma-login-button:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

a.figma-login-button {
    text-decoration: none !important;
}

.figma-logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.figma-signup-prompt {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--white);
    text-align: center;
}

/* Forgot password link inside login form */
.figma-forgot-link {
    text-align: center;
    margin-bottom: 0.8rem;
}
.figma-forgot-link a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    font-weight: 600;
}
.figma-forgot-link a:hover {
    color: #e6f3ff;
}

/* Modal / auth styles */
.home { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:60; }
.home.hidden { display:none !important; }
.form_container { background:transparent; padding:0; border-radius:0; max-width:75rem; width:95%; position:relative; }
.auth-card { background:var(--white); padding:1.6rem; border-radius:1.6rem; max-width:32rem; width:100%; margin:0 auto; box-shadow:0 14px 40px rgba(0,120,255,0.08); border:1px solid rgba(0,120,255,0.05); text-align:center; position:relative; }
.auth-card-small { max-width:28rem; padding:1.2rem; border-radius:1.4rem; }
.auth-card-white { background:var(--white); }
.form_close { position:absolute; right:1rem; top:1rem; z-index:70; background:rgba(255,255,255,0.9); color:var(--primary-blue); border:none; border-radius:50%; width:40px; height:40px; font-size:1.2rem; cursor:pointer; }
.auth-heading { font-size:2rem; font-weight:800; color:var(--primary-blue); margin-bottom:0.5rem; }
.auth-sub { font-size:1rem; color:var(--text-gray); margin-bottom:1rem; }
.form-row { margin-bottom:1rem; }
.auth-input { padding:0.8rem 1.5rem; border:3px solid var(--border-color); border-radius:6rem; background:var(--background-light); font-size:1rem; width:100%; box-sizing:border-box; }

#reset_email {
    border-color: var(--primary-blue);
}
.auth-input-with-toggle {
    position: relative;
}
.auth-cta { margin-top:0.5rem; }
.auth-switch { text-align:center; margin-top:1rem; }
.auth-link { color:var(--primary-blue); text-decoration:none; font-weight:600; }

.figma-signup-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.figma-signup-link:hover {
    color: #e6f3ff;
    text-decoration: underline;
}

.message {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
}

/* Responsive Design for Figma Login */
@media (max-width: 1200px) {
    .figma-login-card {
        max-width: 60rem;
    }

    .figma-login-title {
        font-size: 3rem;
    }

    .figma-form-input {
        padding: 0.7rem 2.5rem;
        font-size: 1.2rem;
        max-width: none;
    }

    .figma-login-left {
        padding: 4rem 2rem 3rem;
    }
}

@media (max-width: 968px) {
    .figma-login-container {
        padding: 2rem 1rem;
    }

    .figma-login-card {
        flex-direction: column;
        margin: 1rem;
        min-height: auto;
    }

    .figma-login-left {
        padding: 3rem 2rem;
        text-align: center;
    }

    .figma-login-welcome {
        position: static;
        margin-bottom: 0.5rem;
    }

    .figma-login-right {
        margin: 0 1.3rem 1.3rem 1.3rem;
        min-height: 15rem;
    }

    .figma-login-title {
        font-size: 2.5rem;
    }

    .figma-login-subtitle {
        font-size: 0.5rem;
        max-width: none;
    }

    .figma-form-input {
        padding: 0.6rem 2rem;
        font-size: 1.1rem;
        text-align: center;
    }

    .figma-login-button {
        font-size: 1.1rem;
        align-self: center;
    }

    .figma-pw-toggle {
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .figma-login-left {
        padding: 2rem 1.5rem;
    }

    .figma-login-title {
        font-size: 2rem;
    }

    .figma-login-subtitle {
        font-size: 0.45rem;
    }

    .figma-form-input {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    .figma-login-button {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .figma-pw-toggle {
        right: 1.2rem;
    }
}

/* Modal-specific responsive styles */
.home .figma-login-card {
    margin: 1rem;
}

@media (max-width: 968px) {
    .home .figma-login-card {
        flex-direction: column;
        min-height: auto;
    }

    .home .figma-login-left {
        padding: 3rem 2rem;
        text-align: center;
    }

    .home .figma-login-welcome {
        position: static;
        margin-bottom: 0.5rem;
    }

    .home .figma-login-right {
        margin: 0 1.3rem 1.3rem 1.3rem;
        min-height: 15rem;
    }

    .home .figma-login-title {
        font-size: 2.5rem;
    }

    .home .figma-login-subtitle {
        font-size: 0.5rem;
        max-width: none;
    }

    .home .figma-form-input {
        padding: 0.6rem 2rem;
        font-size: 1.1rem;
        text-align: center;
    }

    .home .figma-login-button {
        font-size: 1.1rem;
        align-self: center;
    }

    .home .figma-pw-toggle {
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .home .figma-login-left {
        padding: 2rem 1.5rem;
    }

    .figma-login-title {
        font-size: 2rem;
    }

    .figma-login-subtitle {
        font-size: 0.45rem;
    }

    .figma-form-input {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    .figma-login-button {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .figma-pw-toggle {
        right: 1.2rem;
    }
}

/* Signup Page Styles */
.signup-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.signup-card {
    background: var(--white);
    border-radius: 2rem;
    padding: 3rem;
    max-width: 32rem;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 120, 255, 0.1);
    border: 2px solid rgba(0, 120, 255, 0.1);
    text-align: center;
}

.signup-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.signup-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.signup-form-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.input-wrapper {
    position: relative;
}

.signup-input {
    padding: 0.8rem 3rem 0.8rem 1.5rem;
    border: 3px solid var(--border-color);
    border-radius: 6rem;
    background: var(--background-light);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-gray);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.signup-input::placeholder {
    color: var(--text-light);
    font-weight: 500;
}

.signup-input:focus {
    border-color: var(--primary-blue);
    background: var(--white);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 120, 255, 0.1);
}



.signup-button {
    padding: 0.8rem 2rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 6rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.signup-button:hover {
    background: #0066dd;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 255, 0.3);
}

.login-prompt {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.login-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #0066dd;
    text-decoration: underline;
}

/* Responsive Design for Signup */
@media (max-width: 768px) {
    .signup-card {
        padding: 2rem;
        margin: 1rem;
    }

    .signup-title {
        font-size: 2rem;
    }

    .signup-subtitle {
        font-size: 0.9rem;
    }

    .signup-input {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .signup-container {
        padding: 1rem;
    }

    .signup-card {
        padding: 1.5rem;
    }

    .signup-title {
        font-size: 1.8rem;
    }

    .signup-input {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .signup-button {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* Input Box Styles for Password Toggle */
.input_box {
    position: relative;
    width: 100%;

    display: flex;
    align-items: center;
}

.input_box .toggle-password {

    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.input_box .auth-input,
.input_box .figma-form-input,
.input_box .signup-input {
    flex: 1 1 auto;
}

.input_box .toggle-password:hover {
    color: var(--primary-blue);
}

/* Adjust input padding for single icon */
.signup-input {
    padding-right: 3rem !important;
}

.figma-form-input {
    padding-right: 3rem !important;
}


.auth-input {

    padding-right: 4rem !important;

}


/* Utility Classes */
.hidden {
    display: none;
}

.error-message {
    color: #d9534f;
    font-size: 12px;
    margin-top: 4px;
}

.form_container .form-input[aria-invalid="true"] {
    border-color: #d9534f;
}

.form_close {
    /* Use the visual style of .login-button but keep a compact size */
    background: var(--background-light);
    color: var(--primary-blue);
    border: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.45rem 1rem; /* keep the close button compact */
    border-radius: 6rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,120,255,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form_close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,120,255,0.12);
}

.home .form_container {
    max-height: 90vh;
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal form visibility */
.signup_form[aria-hidden="true"] {
    display: none;
}

.login_form[aria-hidden="true"] {
    display: none;
}

.password_reset_form[aria-hidden="true"] {
    display: none;
}

.time-logs-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
}

.time-logs-card {
  background-color: #007bff;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 30px;
  width: 80%;
  max-width: 1000px;
  color: white;
}

.time-logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.time-logs-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.back-btn {
  background-color: white;
  color: #007bff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-color: #0056d2;
  color: white;
}

.time-logs-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  color: #333;
  border-radius: 15px;
  overflow: hidden;
}

.time-logs-table th,
.time-logs-table td {
  padding: 12px 15px;
  text-align: center;
}

.time-logs-table thead {
  background-color: #f3f3f3;
  font-weight: 600;
}

.time-logs-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.no-logs {
  color: #777;
  text-align: center;
  padding: 20px 0;
}

/* Filter Form Styles */
.filter-form {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.filter-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-form label {
    font-weight: bold;
    margin-right: 5px;
    color: #000;
}

.filter-form input[type="date"],
.filter-form select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.filter-form button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.filter-form button:hover {
    background-color: #0056b3;
}

.filter-form a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.filter-form a:hover {
    text-decoration: underline;
}

/* Chart Container Styles */
.chart-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.chart-container canvas {
    max-width: 100%;
    height: 400px;
}

/* Summary Table Container */
.summary-table-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-table-container h3 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.summary-table th,
.summary-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.summary-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.summary-table tbody tr:hover {
    background-color: #f8f9fa;
}

.no-data {
    color: #6c757d;
    font-style: italic;
}

/* Time Reports Container */
.time-reports-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.time-reports-card {
    background-color: #007bff;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 30px;
    width: 80%;
    max-width: 1000px;
    color: white;
}

.time-reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.time-reports-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.back-btn {
    background-color: white;
    color: #007bff;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #0056d2;
    color: white;
}

/* Navigation actions for all pages */
.nav-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-actions form {
    display: inline-block;
}

.nav-signup {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.6rem 1.7rem;
    border-radius: 5rem;
    font-size: 1.15rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-profile, .nav-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    text-decoration: none;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: none;
}

.nav-username {
    font-weight: 600;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-form form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form label {
        margin-bottom: 5px;
    }

    .time-reports-card {
        padding: 20px;
    }

    .chart-container canvas {
        height: 300px;
    }
}

/* Unified auth input/button styles (moved from inline template styles) */
.figma-input,
.auth-input,
.figma-form-input,
.form-input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 18px;
    padding-right: 54px; /* increased space for the password toggle icon */
    margin: 10px 0;
    border-radius: 28px;
    background: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #0b69ff;
    box-shadow: 0 6px 18px rgba(11, 77, 122, 0.06);
}

.figma-input::placeholder,
.auth-input::placeholder,
.figma-form-input::placeholder,
.form-input::placeholder {
    color: #9aa8c6;
    font-weight: 600;
}

.figma-input:focus,
.auth-input:focus,
.figma-form-input:focus,
.form-input:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(11, 77, 122, 0.12), 0 0 0 4px rgba(11,77,122,0.06);
}

/* Style for primary auth action buttons to match the visual design */
.figma-login-button,
.auth-cta,
.login-button,
.cta-button {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 26px;
    border-radius: 28px;
    background: #ffffff;
    color: #0b69ff;
    border: 2px solid #cccccc;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(11, 77, 122, 0.06);
    cursor: pointer;
}

.figma-login-button:focus,
.auth-cta:focus,
.login-button:focus,
.cta-button:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(11, 77, 122, 0.12), 0 0 0 4px rgba(11,69,255,0.06);
}

@media (max-width: 520px) {
    .figma-input,
    .auth-input,
    .figma-form-input,
    .form-input {
        width: 100%;
        max-width: 100%;
    }
}

/* Target Django default rendered password inputs in reset form */
input#id_new_password1,
input#id_new_password2,
input[name="new_password1"],
input[name="new_password2"] {
    display: block;
    width: 420px; /* increased width */
    max-width: 86%;
    padding: 12px 18px;
    padding-right: 54px; /* leave room for the toggle icon */
    margin: 10px 0;
    border-radius: 8px;
    background: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #0b3d7a;
    box-shadow: 0 6px 18px rgba(11, 77, 122, 0.06);
}

input#id_new_password1:focus,
input#id_new_password2:focus,
input[name="new_password1"]:focus,
input[name="new_password2"]:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(11, 77, 122, 0.12), 0 0 0 4px rgba(11,77,122,0.06);
}

@media (max-width: 520px) {
    input#id_new_password1,
    input#id_new_password2,
    input[name="new_password1"],
    input[name="new_password2"] {
        width: 100%;
        max-width: 100%;
    }
}

/* Positioning for input wrapper and password toggle icon */
.input_box {
    position: relative;
}

.input_box .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7fae;
    font-size: 1.05rem;
    padding: 6px;
}

.input_box .toggle-password:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 69, 255, 0.06);
    border-radius: 6px;
}

/* Ensure small screens keep the icon inside */
@media (max-width: 520px) {
    .input_box .toggle-password {
        right: 10px;
    }
}
