/* Authentication Pages Styles */

.auth-page {
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    font-family: var(--font-family);
}

/* Fixed Logo at Top Left */
.auth-header-fixed {
    position: absolute;
    top: 30px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.auth-header-fixed img {
    height: 32px;
    width: auto;
}

.auth-header-fixed span {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.auth-header-fixed .logo-tools {
    opacity: 0.7;
    margin-left: 4px;
}

/* Main Container */
.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 32px;
    text-align: center;
}

/* Google Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 52px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 24px;
}

.btn-google:hover {
    background-color: var(--background-color);
    border-color: var(--primary-color);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Separator */
.auth-separator {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-color);
    opacity: 0.4;
    font-size: 14px;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-separator span {
    padding: 0 16px;
}

/* Forms */
.auth-form-group {
    margin-bottom: 16px;
    position: relative;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-color);
    opacity: 0.4;
    font-size: 18px;
}

.auth-form-control {
    width: 100%;
    height: 52px;
    padding: 12px 16px 12px 46px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.2s;
}

.auth-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.05);
}

.password-toggle {
    position: absolute;
    right: 16px;
    color: var(--text-color);
    opacity: 0.4;
    cursor: pointer;
    font-size: 18px;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 0.8;
}

/* Buttons */
.btn-auth-submit {
    width: 100%;
    height: 52px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}

.btn-auth-submit:hover {
    background: var(--link-hover-color);
    transform: translateY(-1px);
}

/* Policy Links */
.auth-policy-links {
    margin-top: 24px;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.auth-policy-links a {
    color: var(--primary-color);
    text-decoration: underline;
}

.auth-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 10px;
}

/* Footer Link */
.auth-footer {
    text-align: left;
    margin-top: 24px;
    color: var(--text-color);
    font-size: 15px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert */
.auth-alert {
    padding: 14px;
    border-radius: 4px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    margin-bottom: 24px;
    font-size: 14px;
}

/* Hide default site elements */
body.page-template-page-login .main-header,
body.page-template-page-register .main-header,
body.page-template-page-login .main-footer,
body.page-template-page-register .main-footer,
body.page-template-page-login footer,
body.page-template-page-register footer {
    display: none !important;
}

body.page-template-page-login #primary,
body.page-template-page-register #primary {
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .auth-header-fixed {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 40px;
    }

    .auth-page {
        justify-content: flex-start;
        padding-top: 40px;
    }

    .auth-title {
        font-size: 26px;
    }
}