/* Form Container */
.task-form-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .task-form-container {
        padding: 1rem;
    }
    
    .task-form-container h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
}

.task-form-container h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Form Elements */
.task-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: calc(100% - 3rem); /* Account for header */
}

.form-group {
    margin-bottom: 1.5rem; /* Increase spacing between form groups */
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #2c3e50;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    height: 80px;
    min-height: 80px;
    max-height: 300px;
    resize: vertical;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #2c3e50;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1A3663;
    box-shadow: 0 8px 16px rgba(26, 54, 99, 0.1);
    transform: scale(1.04);
    transition: all 0.2s ease;
}

.form-group input,
.form-group textarea,
.form-group select {
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

/* Select Styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Inline Form Group */
.form-group-inline {
    display: flex;
    gap: 0.5rem;
}

.form-group-inline input {
    flex: 1;
}

/* Buttons */
.form-submit {
    width: 100%;
    padding: 0.75rem;
    background-color: #1a365d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 1rem 0;
}

.form-submit:hover {
    background-color: #2c4c84;
}

.form-button-secondary {
    padding: 0.625rem 1rem;
    background-color: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-button-secondary:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e0;
}

.login-error {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    background-color: #dc3545;
    color: white;
    font-size: 0.9rem;
}


/* Login Page Styles */
.login-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
}

/* Scrolling behavior for general pages */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
}

/* No scroll for login page */
.login-container {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
}

.login-split {
    display: flex;
    width: 100%;
    height: 100vh;
}

.login-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    max-width: 50%;
}

.login-card .login-form {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 300px;
    height: auto;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.login-header p {
    color: #64748b;
    font-size: 1rem;
}

.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-control {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 100%;
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(145deg, #5c26bf, #1a3663, #2aac82);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease, opacity 1s ease-in-out;
}

.login-btn.fade-out {
    opacity: 0;
    pointer-events: none;
}

.login-btn:hover {
    background: linear-gradient(145deg, #6c36cf, #2a4673, #3abc92);
    transform: translateY(-1px);
}

.login-banner {
    flex: 1;
    background: linear-gradient(145deg, #5c26bf, #1a3663, #2aac82);
    background-size: 300% 300%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.login-banner.expand {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    transform: scale(1.1);
}

.login-banner {
    transition: all 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
    transform-origin: center;
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.login-banner.expand {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    transform: scale(1.2);
    clip-path: inset(0 0 0 0);
}

.text-set {
    transition: opacity 0.8s ease-in-out;
}

.login-card {
    transition: opacity 1s ease-in-out;
}

.login-card.fade-out {
    opacity: 0;
}

.fade-in-line {
    transition: opacity 1s ease-in-out;
}

.banner-text {
    text-align: center;
    transform: translateY(25%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.banner-text h1 {
    font-size: 3.5rem;
    margin: 2rem 0;
    color: white;
}

.banner-text h2 {
    font-size: 3.5rem;
    margin: 2rem 0;
    color: #22f5c3;
}

.banner-text {
    position: relative;
    width: 100%;
}

.text-set {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.text-set.initial {
    opacity: 1;
}

.text-set.fade-out {
    opacity: 0;
}

.text-set.fade-in {
    opacity: 1;
}
