/* File Path: public/assets/auth/css/auth.css */

:root {
    --temple-primary: #ff6b35;
    --temple-secondary: #004e89;
    --temple-gold: #ffa900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    background: linear-gradient(135deg, #004e89 0%, #1a659e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.om-symbol {
    position: fixed;
    font-size: 150px;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
}

.om-1 { top: -50px; left: -50px; }
.om-2 { bottom: -50px; right: -50px; }
.om-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 200px; }

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.auth-container.auth-large {
    max-width: 550px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    background: linear-gradient(135deg, var(--temple-primary) 0%, var(--temple-gold) 100%);
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
}

.auth-header.header-small {
    padding: 35px 30px 25px;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--temple-gold) 0%, 
        white 50%, 
        var(--temple-gold) 100%);
}

.temple-logo {
    width: 200px;
    height: 80px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.temple-logo.logo-small {
    width: 200px;
    height: 70px;
}

.temple-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.temple-logo .om-icon {
    font-size: 45px;
    color: var(--temple-primary);
}

.temple-logo.logo-small .om-icon {
    font-size: 40px;
}

.auth-header h2 {
    color: white;
    margin: 0 0 5px;
    font-weight: 700;
    font-size: 28px;
}

.auth-header.header-small h2 {
    font-size: 26px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 14px;
}

.auth-body {
    padding: 40px 30px;
}

.auth-body.body-small {
    padding: 35px 30px;
}

.form-floating {
    margin-bottom: 20px;
    position: relative;
}

.form-floating.mb-small {
    margin-bottom: 18px;
}

.form-floating > .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem 0.75rem;
    height: 58px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-floating > .form-control:focus {
    border-color: var(--temple-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.1);
    outline: none;
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #666;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 4;
    pointer-events: none;
}

.btn-auth {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--temple-primary) 0%, var(--temple-gold) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-auth:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider.divider-small {
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.checkbox-custom input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--temple-primary);
    cursor: pointer;
}

.checkbox-custom label {
    color: #666;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
}

.link-primary {
    color: var(--temple-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-primary:hover {
    color: var(--temple-secondary);
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.flex-fill {
    flex: 1;
}

.alert {
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert ul li {
    margin: 5px 0;
}

.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-home a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--temple-secondary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-home a:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.row {
    margin-left: -10px;
    margin-right: -10px;
    display: flex;
    flex-wrap: wrap;
}

.row > div {
    padding-left: 10px;
    padding-right: 10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.footer-text {
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.btn-outline-danger {
    padding: 15px;
    border: 2px solid #dc3545;
    background: transparent;
    color: #dc3545;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    body {
        padding: 20px 0;
    }

    .auth-container {
        padding: 10px;
    }

    .auth-header {
        padding: 30px 20px 20px;
    }

    .auth-header.header-small {
        padding: 25px 20px 20px;
    }

    .auth-body {
        padding: 30px 20px;
    }

    .auth-body.body-small {
        padding: 25px 20px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .auth-header.header-small h2 {
        font-size: 22px;
    }

    .back-home {
        top: 10px;
        left: 10px;
    }

    .back-home a {
        padding: 8px 15px;
        font-size: 14px;
    }

    .temple-logo {
        width: 70px;
        height: 70px;
    }

    .temple-logo.logo-small {
        width: 60px;
        height: 60px;
    }

    .om-symbol {
        font-size: 100px;
    }

    .om-3 {
        font-size: 150px;
    }
}

/* Print Styles */
@media print {
    .back-home,
    .om-symbol {
        display: none;
    }
}