﻿
:root {
    --primary-color: #1DAC7E;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

body {
    background: #F4F4F4;
    color: var(--gray-900);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin-top: 5px;
    margin-bottom: 0px;
    padding: 0px;
    flex-direction: row;
    overflow: hidden;
}

.login-container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 470px;
    max-width: 520px;
    overflow: hidden;
}


.header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

#Rota {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 136%;
    letter-spacing: 0%;
    text-align: center;
    color: #029801;
}

#welcome {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
}

.welcomeRota {
    margin-top: 30px;
}

.logo {
    width: 210px;
    height: 100px;
    /*background-color: var(--primary-color);*/
    border-radius: 8px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-img {
    width: 210px;
    height: 88px;
    margin-bottom: 10px;
}

.logo-icon {
    color: white;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: -1px;
    z-index: 1;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.2rem;
}

.header p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

#Rota {
    margin-bottom: 0;
}

.form-container {
    padding: .5rem 1.5rem 3rem;
}

.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--gray-700);
    }

    .form-group input {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid var(--gray-300);
        border-radius: 6px;
        font-size: 1rem;
        color: var(--gray-900);
        transition: all 0.2s ease;
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(29, 172, 126, 0.2);
        }

.form-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

    .remember-me input {
        margin-right: 0.5rem;
        accent-color: var(--primary-color);
    }

.forgot-password {
    color: #6358DC;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

    .forgot-password:hover {
        opacity: 0.8;
    }

.login-button {
    width: 100%;
    padding: 0.75rem 0.5rem;
    background-color: #029801;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

    .login-button:hover {
        background-color: #029801;
        box-shadow: var(--shadow-md);
    }

    .login-button:active {
        transform: translateY(1px);
    }

.company-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.75rem;
}

    .company-footer p {
        margin-bottom: 0.5rem;
    }

    .company-footer a {
        color: var(--gray-700);
        text-decoration: none;
    }

        .company-footer a:hover {
            color: var(--primary-color);
        }

.signup-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-top: 1rem;
}

    .signup-link a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }

        .signup-link a:hover {
            text-decoration: underline;
        }
/* Add subtle animation */
@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeIn 0.4s ease-out;
}
/* Security indicator */
.security-indicator {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 0.5rem 0;
    margin-top: 1rem;
}

.security-icon {
    margin-right: 0.5rem;
    color: var(--primary-color);
}
/* Responsive adjustments */
@@media (max-width: 480px) {
    .login-container {
        max-width: 90%;
        margin: 1rem;
    }
}

#login_bg, #forgot_bg {
    display: none;
}

.visible {
    display: block !important;
}

.pass-manage {
    position: relative;
    width: 100%;
}

    .pass-manage img {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        color: #888;
        width: 20px;
        height: 16px;
    }

#passwordkey {
    height: 20px;
}

.pass-manage .form-control {
    padding-left: 50px; /* space for lock icon */
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.pass-manage svg {
    width: 20px;
}

#togglePassword {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
}
.alert {
    padding: 15px 0;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size:14px;
}
.alert.alert-danger {
    padding-left: 10px;
    padding-right: 3px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 5px;
    background-color: #f2dede;
    border-color: #eed3d7;
    color: #b94a48;
}

.Guardimg {
    flex: 1;
    max-width: 500px;
    margin-right: 100px;
}

    .Guardimg img {
        max-height: 101vh;
        max-width: 100%;
        padding-bottom: 0px;
    }

@media (max-width:940px) {
    .Guardimg {
        display: none;
    }

    .login-container {
        display: flex;
        justify-content: center;
        width: 400px;
        margin: 5px;
    }
}

@media (max-width: 1400px) and (min-width: 769px) {
    .login-container {
        display: flex;
        justify-content: center;
        width: 400px;
        margin: 5px;
    }

    .Guardimg img {
        max-height: 103vh;
        max-width: 100%;
        padding-bottom: 0px;
    }
}
