@import url('//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css');
html{
	background-color:#000;
	color:#fff;
}

.info-msg,
.success-msg,
.warning-msg,
.error-msg {
  margin: 10px 0;
  padding: 10px;
  border-radius: 3px 3px 3px 3px;
}
.info-msg {
  color: #059;
  background-color: #BEF;
}
.success-msg {
  color: #270;
  background-color: #DFF2BF;
}
.warning-msg {
  color: #9F6000;
  background-color: #FEEFB3;
}
.error-msg {
  color: #D8000C;
  background-color: #FFBABA;
}

.logo {
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #42A5F5 100%);
    color: #fff;
    border: 3px solid #FFD700;
    border-radius: 15px;
    text-align: center;
    padding: 15px 20px 20px 20px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.logo img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 215, 0, 0.5);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

@keyframes borderPulse {
    0%, 100% {
        border-color: #FFD700;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 215, 0, 0.4);
    }
    50% {
        border-color: #FFA500;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 165, 0, 0.6);
    }
}

.logo {
    animation: borderPulse 2s ease-in-out infinite;
}

.header {
    background: linear-gradient(135deg, #FBF4FF 0%, #E8D5F7 50%, #D4B8E8 100%);
    color: #2C003E;
    text-align: center;
    border: 2px solid #9C27B0;
    border-radius: 12px;
    margin-top: 5px;
    padding: 20px 25px;
    box-shadow: 
        0 6px 15px rgba(156, 39, 176, 0.2),
        0 0 20px rgba(156, 39, 176, 0.1),
        inset 0 0 15px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(156, 39, 176, 0.3),
        0 0 30px rgba(156, 39, 176, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.6);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* Optional: Add decorative corners */
.header::after {
    content: '✦';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    color: #9C27B0;
    opacity: 0.6;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* --- Message Boxes (Error & Success) --- */
.login-error-msg, .login-success-msg {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px; /* This ensures it pushes the form down */
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease forwards;
    display: flex; /* Flexbox helps align text and close button */
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Specific Colors */
.login-error-msg {
    background: #ffebee; /* Light red background */
    color: #c62828;      /* Dark red text */
    border: 1px solid #ef9a9a;
}

.login-success-msg {
    background: #e8f5e9; /* Light green background */
    color: #2e7d32;      /* Dark green text */
    border: 1px solid #a5d6a7;
}

/* The text inside the message */
.msg-text {
    flex-grow: 1;
}

/* The Close (X) Button */
.close-btn {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 1;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Rest of the Form Styles (kept from previous design) --- */
.login-panel-header {
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
    color: #fff;
    text-align: center;
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.login-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 25px 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.login-card {
    max-width: 450px;
    margin: 0 auto;
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.login-field-group { margin-bottom: 20px; }

.login-label {
    display: block;
    color: #2C3E50;
    font-size: 14px;
    font-weight: 700; /* Made slightly bolder */
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.login-input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #2C3E50;
    background: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-input-field:focus {
    outline: none;
    border-color: #1976D2;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

.login-submit-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2C003E;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.login-signup-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    color: #1976D2;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    background: rgba(25, 118, 210, 0.05);
    transition: all 0.3s ease;
}

.login-signup-link:hover {
    background: rgba(25, 118, 210, 0.1);
    color: #0D47A1;
}

.login-signup-link strong { color: #FF6F00; font-weight: 700; }


/* --- Footer Container --- */
.site-footer {
    background: linear-gradient(180deg, #1a237e 0%, #0d1442 100%);
    padding: 25px 15px 20px;
    text-align: center;
    border-top: 3px solid #ffd700;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}

/* --- Links Rows (Shared) --- */
.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

/* --- Compact Capsule Buttons --- */
.footer-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px; /* Reduced padding for compact size */
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid transparent;
    min-width: auto;
}

.footer-capsule:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* --- Individual Capsule Colors --- */
.capsule-back {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
}
.capsule-back:hover { border-color: #ff6b6b; background: #fff; color: #ff6b6b; }

.capsule-home {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1a237e;
}
.capsule-home:hover { border-color: #ffd700; background: #1a237e; color: #ffd700; }

.capsule-about {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: #fff;
}
.capsule-about:hover { border-color: #4ecdc4; background: #fff; color: #4ecdc4; }

.capsule-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.capsule-contact:hover { border-color: #667eea; background: #fff; color: #667eea; }

.capsule-privacy {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}
.capsule-privacy:hover { border-color: #f093fb; background: #fff; color: #f093fb; }

.capsule-terms {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #1a237e;
}
.capsule-terms:hover { border-color: #4facfe; background: #1a237e; color: #4facfe; }

.capsule-disclaimer {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #1a237e;
}
.capsule-disclaimer:hover { border-color: #fa709a; background: #1a237e; color: #fa709a; }

/* --- Bottom Branding Row --- */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    margin-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.brand-name {
    color: #ffd700;
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.contact-number {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-number:hover {
    background: #ffd700;
    color: #1a237e;
    border-color: #ffd700;
}

/* --- Mobile Optimization --- */
@media (max-width: 480px) {
    .site-footer { padding: 20px 10px 15px; }
    
    .footer-links-row { gap: 6px; margin-bottom: 10px; }
    
    .footer-capsule {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
    }
    
    .brand-name { font-size: 13px; }
    .contact-number { font-size: 12px; padding: 5px 12px; }
}

/* --- Registration Panel Header --- */
.reg-panel-header {
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
    color: #fff;
    text-align: center;
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
    position: relative;
    overflow: hidden;
}

.reg-panel-header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: headerShine 4s infinite;
}

@keyframes headerShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* --- Wrapper & Card --- */
.reg-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 25px 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.reg-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* --- Messages (Error/Success) --- */
.reg-error-msg, .reg-success-msg {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    animation: slideDown 0.3s ease forwards;
}

.reg-error-msg {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.reg-success-msg {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.close-btn {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    opacity: 0.7;
}

.close-btn:hover { opacity: 1; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Form Fields --- */
.reg-field-group { margin-bottom: 18px; }

.reg-label {
    display: block;
    color: #2C3E50;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.reg-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #2C3E50;
    background: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.reg-input:focus {
    outline: none;
    border-color: #1976D2;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

/* --- Submit Button --- */
.reg-submit-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2C003E;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.reg-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-icon { font-size: 18px; transition: transform 0.3s; }
.reg-submit-btn:hover .btn-icon { transform: translateX(5px); }

/* --- Login Link --- */
.reg-login-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    color: #1976D2;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    background: rgba(25, 118, 210, 0.05);
    transition: all 0.3s ease;
}

.reg-login-link:hover {
    background: rgba(25, 118, 210, 0.1);
    color: #0D47A1;
}

.reg-login-link strong { color: #FF6F00; font-weight: 700; }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .reg-panel-header { font-size: 18px; padding: 15px; }
    .reg-wrapper { padding: 20px 15px; }
    .reg-card { padding: 25px 20px; }
    .reg-input { padding: 12px 15px; font-size: 14px; }
    .reg-submit-btn { padding: 14px 18px; font-size: 15px; }
}

@media (max-width: 480px) {
    .reg-panel-header { font-size: 16px; letter-spacing: 1px; }
    .reg-card { padding: 20px 15px; }
    .reg-label { font-size: 13px; }
    .reg-input { padding: 11px 14px; }
}

/* --- Wrapper --- */
.df-wrapper {
    max-width: 700px;
    margin: 20px auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Golden Header --- */
.df-header {
    background: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
    padding: 18px 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.df-header h4 {
    margin: 0;
    color: #000;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.df-date {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #451a03;
    font-weight: 700;
}

/* --- White Card --- */
.df-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    padding: 25px 20px;
    margin-bottom: 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- Centered Market Name --- */
.df-market-name {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    color: #1e293b;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #fbbf24; /* Gold dashed line */
    letter-spacing: 0.5px;
}

/* --- Data Rows --- */
.df-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.df-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f8fafc;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.df-row:hover {
    background: #fffbeb; /* Light gold tint on hover */
    transform: translateX(4px);
}

/* Row Specific Colors (Left Border) */
.row-open   { border-left-color: #dc2626; } /* Red */
.row-jodi   { border-left-color: #2563eb; } /* Blue */
.row-patti  { border-left-color: #16a34a; } /* Green */
.row-close  { border-left-color: #d97706; } /* Amber */

.df-label {
    font-size: 14px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
}

.df-divider {
    flex-grow: 1;
    text-align: center;
    color: #cbd5e1;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
}

.df-value {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    min-width: 80px;
    text-align: right;
    letter-spacing: 1px;
}

/* Value Colors matching borders */
.row-open .df-value   { color: #dc2626; }
.row-jodi .df-value   { color: #2563eb; }
.row-patti .df-value  { color: #16a34a; }
.row-close .df-value  { color: #d97706; }

/* --- Time Footer --- */
.df-time {
    text-align: center;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.df-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

/* --- Mobile Optimization --- */
@media (max-width: 480px) {
    .df-wrapper { margin: 10px; }
    .df-header h4 { font-size: 17px; }
    .df-market-name { font-size: 20px; }
    .df-row { padding: 10px 12px; }
    .df-label { font-size: 12px; min-width: 65px; }
    .df-value { font-size: 18px; min-width: 65px; }
}