/* Login Page Styles */

/* Layout & Container */
body {
    background: var(--color-bg);
    min-width: 320px;
    min-height: 100vh;
}

.page-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-color: var(--color-bg);
}

/* Logo Animation */
.logo-anim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    animation: moveLogo 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

.logo-white {
    display: none;
}

.logo-colored {
    width: 100%;
    display: block;
}

/* No-Animation State */
.no-anim .logo-container {
    position: absolute;
    z-index: 10;
    height: auto;
    width: auto;
    top: 60px;
    left: 60px;
}

.no-anim .logo-anim {
    animation: none;
    width: 100px;
    position: static;
    transform: none;
}

.no-anim .login-card,
.no-anim .legal-links,
.no-anim .top-signup-link {
    animation: none;
    opacity: 1;
}

/* Sign Up Link */
.top-signup-link {
    position: absolute;
    top: 60px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 35px;
    font-size: 20px;
    font-weight: 400;
    opacity: 0;
    animation: fadeInContent 1s ease-in-out forwards;
    animation-delay: 1.2s;
}

.top-signup-link span {
    color: #000000;
    font-weight: 400;
    font-size: 20px;
}

/* Login Card */
.login-card {
    background-color: var(--color-white);
    padding: 35px 40px;
    border-radius: 30px;
    box-shadow: 0px 0px 14px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 652px;
    max-width: 90%;
    opacity: 0;
    animation: fadeInContent 1s ease-in-out forwards;
    animation-delay: 1.2s;
}

.login-card h1 {
    font-size: 61px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.login-card form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.separator-blue {
    width: 150px;
    height: 3px;
    background-color: var(--color-secondary);
    margin-bottom: 45px;
}

/* Form Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 422px;
}

.input-group input {
    width: 100%;
    padding: 13px 50px 13px 21px;
    font-size: 21px;
    border: 1px solid #D1D1D1;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #29ABE2;
}

.input-group.input-error input {
    border-color: var(--color-error);
}

.login-error-msg {
    color: var(--color-error);
    font-size: 16px;
    text-align: center;
    height: 20px;
    visibility: hidden;
}

.input-group img, .password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
}

.input-group img {
    right: 21px;
    pointer-events: none;
}

img.login-password-icon {
    pointer-events: auto;
    cursor: pointer;
}

#loginPassword {
    padding-right: 55px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* Buttons */
.login-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.login-buttons .btn-dark {
    width: 111px;
    padding: 15px 0;
}

.login-buttons .btn-light {
    width: 180px;
    padding: 15px 0;
}

.btn-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 21px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.btn-dark:hover {
    background-color: var(--color-secondary);
    box-shadow: 0 4px 4px 0 rgba(0,0,0,0.2);
}

.btn-dark:disabled {
    background-color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 21px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-light:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-primary-small {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.btn-primary-small:hover {
    background-color: var(--color-secondary);
    box-shadow: 0 4px 4px 0 rgba(0,0,0,0.2);
}

/* Footer & Legal Links */
.legal-links {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    animation: fadeInContent 1s ease-in-out forwards;
    animation-delay: 1.2s;
}

.legal-links a {
    text-decoration: none;
    color: #A8A8A8;
    font-size: 16px;
}

.legal-links a:hover {
    color: var(--color-secondary);
}

/* Success Message Overlay */
.success-message {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: white;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
    text-align: center;
}

.success-message.show {
    bottom: 50%;
    transform: translate(-50%, 50%);
}

/* Keyframe Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes moveLogo {
    0% { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 250px; }
    100% { top: 60px; left: 60px; transform: translate(0, 0); width: 100px; }
}

@keyframes fadeInContent {
    from { opacity: 0; }
    to { opacity: 1; }
}
