/* Badminton Theme Login Page Styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* Modern badminton court-inspired background */
body {
    background: linear-gradient(135deg, #1a5d42 0%, #237A57 50%, #35BE90 100%);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Badminton court lines overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="500" viewBox="0 0 800 500"><rect x="100" y="50" width="600" height="400" fill="none" stroke="%23ffffff" stroke-width="2" opacity="0.1"/><line x1="400" y1="50" x2="400" y2="450" stroke="%23ffffff" stroke-width="2" opacity="0.1"/><rect x="100" y="150" width="600" height="200" fill="none" stroke="%23ffffff" stroke-width="2" opacity="0.1"/><line x1="250" y1="50" x2="250" y2="450" stroke="%23ffffff" stroke-width="1" opacity="0.1"/><line x1="550" y1="50" x2="550" y2="450" stroke="%23ffffff" stroke-width="1" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

/* Shuttlecock decorative elements */
body::after {
    content: "";
    position: fixed;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff" stroke="%23ffffff" stroke-width="0.5" opacity="0.15"><circle cx="12" cy="18" r="4"/><path d="M12,2 L15,10 M12,2 L9,10 M12,2 L6,8 M12,2 L18,8"/></svg>');
    background-size: contain;
    transform: rotate(30deg);
    opacity: 0.5;
    z-index: -1;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(30deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(20px, 20px); }
}

/* Card styling - glass morphism with badminton theme */
.card {
    width: 400px;
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    position: relative;
}

/* Badminton net pattern for card */
.card::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    background: repeating-linear-gradient(90deg, 
                transparent, transparent 9px, 
                rgba(255, 255, 255, 0.05) 9px, 
                rgba(255, 255, 255, 0.05) 10px);
    border-radius: 12px;
    z-index: -1;
    pointer-events: none;
}

/* Heading with racket icon */
h3 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px !important;
    position: relative;
    display: inline-block;
}

h3::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff" stroke="%23ffffff" stroke-width="0"><path d="M12,2 C8,2 4,6 4,10 C4,14 7,17 11,18 L11,22 L13,22 L13,18 C17,17 20,14 20,10 C20,6 16,2 12,2 Z" opacity="0.7"/></svg>');
    background-size: contain;
    left: -30px;
    top: 10px;
}

h3::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff" stroke="%23ffffff" stroke-width="0"><path d="M12,2 C8,2 4,6 4,10 C4,14 7,17 11,18 L11,22 L13,22 L13,18 C17,17 20,14 20,10 C20,6 16,2 12,2 Z" opacity="0.7"/></svg>');
    background-size: contain;
    right: -30px;
    top: 10px;
    transform: scaleX(-1);
}

/* Form controls - with court line accent */
.form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    font-size: 16px;
    transition: all 0.3s ease;
    border-left: 3px solid rgba(255, 255, 255, 0.3) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
    border-left: 3px solid white !important;
}

/* Login button - sport themed */
.btn-login {
    background: linear-gradient(to right, #ffffff, #f0f0f0) !important;
    border: none !important;
    color: #237A57 !important;
    padding: 15px !important;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50px;
    width: 30px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    transform: skewX(-45deg);
    transition: all 0.8s ease;
    filter: blur(5px);
}

.btn-login:hover {
    background: linear-gradient(to right, #f0f0f0, #ffffff) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #1a5d42 !important;
}

.btn-login:hover::before {
    left: calc(100% + 50px);
}

.btn-login:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Text and links */
p {
    color: white;
}

.signup-link {
    color: #ffffff; /* White */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 2px;
}

.signup-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.signup-link:hover {
    color: white;
}

.signup-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.back-link {
    color: white;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.back-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    border-left: 3px solid white;
}

/* Alert styling - like out-of-bounds marker */
.alert-danger {
    background-color: rgba(220, 53, 69, 0.8) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    border-left: 4px solid #ff8080 !important;
}

/* Toggle password icon */
.bi-eye, .bi-eye-slash {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

button:hover .bi-eye, button:hover .bi-eye-slash {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .card {
        width: 90% !important;
        padding: 20px !important;
    }
    
    h3 {
        font-size: 2rem;
    }
    
    h3::before, h3::after {
        display: none;
    }
    
    .form-control, .btn-login {
        padding: 12px !important;
    }
    
    /* Smaller badminton background for mobile */
    body::before {
        background-size: 200%;
    }
    
    body::after {
        width: 50px;
        height: 50px;
        top: 10px;
        right: 10px;
    }
}

/* Adding subtle court markings on corners */
.d-flex::before,
.d-flex::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.1;
}

.d-flex::before {
    top: 20px;
    left: 20px;
    border-top: 3px solid white;
    border-left: 3px solid white;
    border-top-left-radius: 20px;
}

.d-flex::after {
    bottom: 20px;
    right: 20px;
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    border-bottom-right-radius: 20px;
}