:root {
    --hian-orange: #e54b1b;
    --hian-orange-dark: #c23d14;
    --hian-blue: #3d5a99;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    position: relative;
    color: var(--text-color);
}

/* Animated background circles */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(229, 75, 27, 0.1);
    animation: pulse-bg 4s ease-in-out infinite;
    z-index: 0;
}

.bg-circle:nth-child(1) {
    width: 600px;
    height: 600px;
    animation-delay: 0s;
    top: -100px;
    right: -100px;
}

.bg-circle:nth-child(2) {
    width: 450px;
    height: 450px;
    animation-delay: 1s;
    bottom: -50px;
    left: -50px;
}

.bg-circle:nth-child(3) {
    width: 300px;
    height: 300px;
    animation-delay: 2s;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulse-bg {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.container-sos {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 20px;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
}

.title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Form Elements */
.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 8px;
    text-align: right;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--hian-orange);
    box-shadow: 0 0 0 4px rgba(229, 75, 27, 0.2);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(145deg, #f25c2a, #c23d14);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 30px rgba(229, 75, 27, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background: linear-gradient(145deg, #ff6b3d, #d64518);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(229, 75, 27, 0.5);
    color: #fff;
}

/* SOS Button Styles */
.sos-btn-wrapper {
    position: relative;
    display: inline-block;
    margin: 40px 0;
}

.sos-btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--hian-orange);
    animation: pulse-ring 2s ease-out infinite;
}

.sos-btn-pulse:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.sos-btn {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #f25c2a, #c23d14);
    box-shadow:
        0 10px 40px rgba(229, 75, 27, 0.5),
        0 0 0 8px rgba(229, 75, 27, 0.2),
        inset 0 -5px 20px rgba(0,0,0,0.2),
        inset 0 5px 20px rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    z-index: 20;
}

.sos-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 15px 50px rgba(229, 75, 27, 0.6),
        0 0 0 12px rgba(229, 75, 27, 0.3),
        inset 0 -5px 20px rgba(0,0,0,0.2),
        inset 0 5px 20px rgba(255,255,255,0.1);
    color: #fff;
}

.sos-btn:active {
    transform: scale(0.95);
}

.sos-btn .icon {
    font-size: 3.5rem;
    margin-bottom: 5px;
}

.sos-btn .text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
}

/* Alerts */
.alert {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    color: #333;
    font-weight: 500;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

.alert-success {
    background: rgba(25, 135, 84, 0.9);
    color: #fff;
}

/* User Info on Emergency Page */
.user-info-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info-card h4 {
    color: var(--hian-orange);
    font-weight: 600;
}

.footer {
    position: fixed;
    bottom: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
}
