/* Variables */
:root {
    --primary-color: #101840;

    --secondary-color: rgb(49, 80, 152);
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
}

/* Header */
.header {
    background: linear-gradient(
        to bottom right,                 
        var(--primary-color) 0%,        
        var(--primary-color) 50%,      
        var(--secondary-color) 100%     
    );
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

main {
    flex: 1;
}

.logout-btn {
    background-color: rgba(192, 192, 192, 0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1.5rem,0rem;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: rgb(255, 255, 255);
    color: var(--primary-color)
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.logo-container {
    padding-bottom: 0%;
    text-align: center;
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

.logo-placeholder {
    width: 200px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 8px;
}

/* Form Container */
.form-container {
    display: none;
    background: white;
    padding: 2.5rem;
    border-radius: 1.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
}

.form-container h1 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #0078d4;
}

input[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

.file-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.submit-btn {
    margin: 10px auto;   
    display: flex;
    align-items: center; 
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: white;
    margin-bottom: 10px; 
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary-color);
    transition: background-color 0.3s ease;
    color: white;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: linear-gradient(
        to top left,                 
        var(--primary-color) 0%,        
        var(--primary-color) 50%,      
        var(--secondary-color) 100%     
    );
    color: white;
    padding: 1rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0078d4;
}

/* Success/Error Messages */
.message {

    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.show {
    display: block;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0078d4;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-button {
        display: flex;
        align-items: center; 
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        border: 1px solid #ccc;
        background-color: white;
        margin-bottom: 10px; 
    }
    
    .login-icon {
        width: 24px;
        height: 24px;
        margin-right: 10px; 
    }
    
    .google-button {
        border: 1px solid #4285F4;
        color: #000000;
        border-color: #000000;
    }

    .google-button:hover {
        background-color: var(--primary-color);
        color: #ffffff;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .microsoft-button {
        border: 1px solid #2F2F2F;
        color: #000000;
        border-color: #000000;
    }
    
    .microsoft-button:hover {
        background-color: var(--primary-color);
        color: #ffffff;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .login-container {
        background-color: rgb(255, 255, 255);
        border-radius: 20%;
        border-color: #000000;
        padding: 40px; 
        display: flex;
        flex-direction: column;
        gap: 15px; 
        max-width: 350px; 
        border-radius: 0; 
    }    

    .main-container { 
    background-color: #ffffff;
    display: flex;
    justify-content: center;  
    align-items: center;  
    flex-direction: column;
    width: 100%;
    max-width: 500px;  
    margin: 40px auto;
    padding: 2rem 2rem 3rem;
    border-radius: 5px;
}


@media (max-width: 650px) {
    .main-container {
        max-width: 100%;   
        margin: 0;         
        border-radius: 0;
    }
}