/* Temple-themed variables */
:root {
    --primary-color: #8B0000; /* Deep Red */
    --secondary-color: #DAA520; /* Golden */
    --text-color: #333;
    --light-bg: #FFF5E6; /* Warm Light */
    --accent-color: #CD853F; /* Golden Brown */
    --border-color: #DAA520; /* Golden */
    --input-bg: rgba(255, 255, 255, 0.95);
    --transition-speed: 0.3s;
    --google-color: #DB4437;
    --facebook-color: #4267B2;
}

.signin-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF5E6, #FFE5CC);
    display: flex;
    flex-direction: column;
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/temple-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.signin-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 245, 230, 0.92);
    backdrop-filter: blur(8px);
    z-index: 0;
}

.signin-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 1;
}

.signin-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 230, 0.95));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.15);
    width: 100%;
}

.temple-border {
    border: 2px solid var(--border-color);
    border-radius: 18px;
    padding: 3rem 2rem;
    position: relative;
}

.temple-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    margin: 1rem;
    pointer-events: none;
    opacity: 0.7;
}

.om-symbol {
    display: block; /* Show the original Om symbol */
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.om-decoration {
    text-align: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
}

.welcome-text {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 1rem;
}

.welcome-text::before {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--secondary-color);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--border-color), var(--primary-color), var(--border-color));
}

.form-group {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon input {
    width: 100%;
    padding: 1rem 3.2rem 1rem 2.8rem; /* increased right padding for eye icon */
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    background-color: var(--input-bg);
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
    color: var(--text-color);
    height: 3rem;
    position: relative;
}

.input-icon i:not(.toggle-password) {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 1.2rem;
    pointer-events: none;
    width: 1.2rem;
    text-align: center;
}

.input-icon .fa-mobile-alt {
    font-size: 1.4rem;
}

.input-icon .toggle-password {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.7;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.3rem;
    z-index: 2;
    line-height: 1;
    display: flex;
    align-items: center;
}

.input-icon input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.input-icon input:focus + i:not(.toggle-password) {
    color: var(--secondary-color);
    opacity: 1;
}

.input-icon i:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.signin-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #A52A2A);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block; /* Remove flex display */
    text-align: center;
}

.signin-btn:hover {
    background: linear-gradient(135deg, #A52A2A, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-color);
}

.create-account {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

.create-account:hover {
    color: var(--secondary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
    .signin-page {
        min-height: 100vh;
        background: linear-gradient(135deg, #FFF5E6, #FFE5CC);
        display: flex;
        flex-direction: column;
        position: relative;
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }
    .signin-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.7rem;
        position: relative;
        width: 100%;
        max-width: 100vw;
        margin: 0 auto;
        z-index: 1;
    }
    .signin-box {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 245, 230, 0.97));
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(139, 0, 0, 0.13);
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    .temple-border {
        border: 2px solid var(--border-color);
        border-radius: 10px;
        padding: 1.2rem 0.7rem;
        position: relative;
    }
    .temple-border::before {
        margin: 0.3rem;
    }
    .welcome-text {
        font-size: 1.4rem;
        margin-bottom: 1.1rem;
        letter-spacing: 1.5px;
        padding-bottom: 0.5rem;
    }
    .om-symbol {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
        text-align: center;
        display: block;
    }
    .form-group {
        margin-bottom: 0.7rem;
    }
    .input-icon input {
        padding: 0.8rem 2rem;
        height: 2.3rem;
        font-size: 0.97rem;
        border-radius: 7px;
    }
    .input-icon i:not(.toggle-password) {
        font-size: 1.1rem;
        left: 0.7rem;
    }
    .input-icon .fa-mobile-alt {
        font-size: 1.2rem;
    }
    .input-icon .toggle-password {
        right: 0.6rem;
        font-size: 0.95rem;
        padding: 0.3rem;
    }
    .form-options {
        margin-bottom: 0.7rem;
        font-size: 0.88rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .signin-btn {
        padding: 0.85rem;
        font-size: 1rem;
        margin-top: 0.7rem;
        border-radius: 7px;
    }
    .signup-link {
        margin-top: 0.7rem;
        font-size: 0.88rem;
    }
    .back-nav {
        top: 0.5rem;
        left: 0.5rem;
    }
    .back-arrow {
        width: 28px;
        height: 28px;
    }
    .back-arrow i {
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .signin-container {
        padding: 0.3rem;
    }
    .temple-border {
        padding: 0.7rem 0.3rem;
        border-radius: 6px;
    }
    .welcome-text {
        font-size: 1.1rem;
    }
    .om-symbol {
        font-size: 1.2rem;
    }
    .input-icon input {
        padding: 0.5rem 1.5rem;
        height: 1.7rem;
        font-size: 0.85rem;
        border-radius: 5px;
    }
    .input-icon i:not(.toggle-password) {
        font-size: 0.9rem;
        left: 0.5rem;
    }
    .input-icon .fa-mobile-alt {
        font-size: 1rem;
    }
    .input-icon .toggle-password {
        right: 0.3rem;
        font-size: 0.8rem;
        padding: 0.2rem;
    }
    .form-group {
        margin-bottom: 0.4rem;
    }
    .form-options {
        margin-bottom: 0.4rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    .signin-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
        margin-top: 0.4rem;
        border-radius: 5px;
    }
    .signup-link {
        margin-top: 0.4rem;
        font-size: 0.8rem;
    }
    .back-nav {
        top: 0.3rem;
        left: 0.3rem;
    }
    .back-arrow {
        width: 22px;
        height: 22px;
    }
    .back-arrow i {
        font-size: 0.7rem;
    }
}

    .temple-border::after {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        border: 3px solid var(--border-color);
        border-radius: 0 0 0 15px;
        border-left: none;
        border-bottom: none;
        opacity: 0.7;
    }

/* Animation for sign-in box */
.animate-in {
    animation: boxAppear 1s ease forwards;
}

@keyframes boxAppear {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(5deg);
    }
}

/* Animation for form elements */
.signin-form .form-group,
.signin-form .form-options,
.signin-form .signin-btn,
.signin-form .signup-link {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.signin-form .form-group:nth-child(1) { animation-delay: 0.2s; }
.signin-form .form-group:nth-child(2) { animation-delay: 0.4s; }
.signin-form .form-options { animation-delay: 0.6s; }
.signin-form .signup-link { animation-delay: 0.8s; }
.signin-form .signin-btn { animation-delay: 1s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox styling */
.checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.remember-me input {
    display: none;
}

.social-signin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(10px);
}

.social-btn.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.google:hover {
    border-color: var(--google-color);
    color: var(--google-color);
}

.social-btn.facebook:hover {
    border-color: var(--facebook-color);
    color: var(--facebook-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .signin-container {
        padding: 1rem;
    }

    .input-icon input {
        padding: 0.8rem 2.8rem 0.8rem 2.3rem; /* slightly more right padding for icon */
        font-size: 1rem;
        height: 2.5rem;
    }

    .input-icon .toggle-password {
        right: 0.9rem;
        font-size: 1.1rem;
        padding: 0.3rem;
    }

    .signin-box {
        min-height: 520px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .temple-border {
        padding: 2.5rem 1.5rem 2.5rem 1.5rem;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .welcome-text {
        font-size: 1.8rem;
    }

    .social-signin {
        grid-template-columns: 1fr;
    }
}



/* Custom Checkbox */
.remember-me input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.remember-me input:checked + .checkmark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Remove any animation classes */
.animate-in {
    animation: none;
}

/* Add temple corner decorations */
.temple-border::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-radius: 0 0 0 15px;
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
    opacity: 0.7;
}

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 5px var(--secondary-color);
    }
    50% {
        box-shadow: 0 0 20px var(--secondary-color);
    }
    100% {
        box-shadow: 0 0 5px var(--secondary-color);
    }
}

/* Back navigation styles */
.back-nav {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), #A52A2A);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.2);
    border: 2px solid rgba(218, 165, 32, 0.5);
}

.back-arrow:hover {
    transform: scale(1.1) translateX(-3px);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 6px 12px rgba(139, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.back-arrow i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-arrow:hover i {
    transform: translateX(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-nav {
        top: 12px;
        left: 12px;
    }
    
    .back-arrow {
        width: 30px;
        height: 30px;
    }
    
    .back-arrow i {
        font-size: 0.9rem;
    }
}

/* Add styles for error messages */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 1.2em;
}

/* Add styles for success message */
.success-message {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

/* Style for remember me text */
.remember-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Disabled button state */
.signin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .error-message {
        font-size: 0.8rem;
    }

    .success-message {
        font-size: 0.9rem;
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .forgot-password {
        font-size: 0.85rem;
    }

    .remember-text {
        font-size: 0.85rem;
    }

    /* Improve touch targets */
    .input-icon input {
        -webkit-tap-highlight-color: transparent;
    }

    .toggle-password {
        padding: 12px;
        margin: -12px;
    }

    /* Prevent text selection during touch */
    .signin-btn,
    .back-arrow,
    .create-account,
    .forgot-password {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Active state for touch */
    .signin-btn:active,
    .back-arrow:active,
    .create-account:active,
    .forgot-password:active {
        opacity: 0.7;
    }
}

/* iPhone SE and smaller devices */
@media (max-width: 375px) {
    .error-message {
        font-size: 0.75rem;
    }

    .success-message {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
}

/* Landscape mode adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .form-options {
        margin: 0.5rem 0;
    }

    .error-message {
        margin-top: 0.2rem;
    }

    .success-message {
        margin-bottom: 0.5rem;
    }
} 