/* Login Page Styles - Bread Portal */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 25%, #CD853F 50%, #A0522D 75%, #6B3E26 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating bread shapes */
body.login-page::before,
body.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation: float 20s ease-in-out infinite;
}

body.login-page::before {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -100px;
}

body.login-page::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -50px;
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(30px) rotate(5deg);
    }
}

/* Decorative elements */
.decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 220, 180, 0.08);
    pointer-events: none;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation: float 12s ease-in-out infinite;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 5%;
    animation: float 15s ease-in-out infinite reverse;
}

/* Login Container & Card */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(253, 248, 243, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D2691E, #CD853F, #F4A460, #CD853F, #D2691E);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Brand Section */
.brand-section {
    text-align: center;
    margin-bottom: 36px;
}

.brand-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.35);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.brand-icon:hover {
    transform: rotate(0deg) scale(1.05);
}

.brand-icon i {
    font-size: 32px;
    color: #fff;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #3D2314;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #D2691E;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #5D4037;
    margin-bottom: 4px;
}

.login-header p {
    font-size: 13px;
    color: #8D6E63;
}

/* Alerts */
.login-card .alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-card .alert-danger {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    color: #C62828;
}

.login-card .alert-success {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #2E7D32;
}

.login-card .alert .close {
    position: relative;
    top: 0;
    right: 0;
    margin-left: auto;
    color: inherit;
    opacity: 0.6;
    font-size: 18px;
    text-shadow: none;
}

.login-card .alert .close:hover {
    opacity: 1;
}

/* Form Elements */
.login-card .form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #A1887F;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 2;
}

.login-card .form-control {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #E8E0DB;
    border-radius: 14px;
    background: #FAFAF9;
    color: #3D2314;
    transition: all 0.3s ease;
    outline: none;
}

.login-card .form-control::placeholder {
    color: #A1887F;
}

.login-card .form-control:hover {
    border-color: #D7CCC8;
    background: #fff;
}

.login-card .form-control:focus {
    border-color: #D2691E;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(210, 105, 30, 0.1);
}

.input-wrapper:focus-within .input-icon {
    color: #D2691E;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #5D4037;
    margin-bottom: 8px;
}

/* Input Hint */
.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #8D6E63;
    line-height: 1.4;
}

.input-hint i {
    margin-right: 5px;
    color: #D2691E;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.35);
    margin-top: 8px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.45);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.35);
}

/* Footer */
.footer-text {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #EDE7E3;
}

.footer-text p {
    font-size: 12px;
    color: #A1887F;
}

.footer-text a {
    color: #D2691E;
    text-decoration: none;
    font-weight: 500;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 28px;
        border-radius: 20px;
    }

    .brand-title {
        font-size: 28px;
    }

    .brand-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .brand-icon i {
        font-size: 26px;
    }
}

/* Remove number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}